/**
 * Lithops Auth Styles - Bootstrap 5 Multi-step Forms
 */

/* ========================
   MAIN CONTAINER
   ======================== */
.lithops-auth-container {
	max-width: 500px;
	margin: 2rem auto;
	padding: 0 15px;
}

.lithops-auth-form-wrapper {
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
	overflow: hidden;
}

.lithops-auth-form {
	padding: 2rem;
}

/* ========================
   PROGRESS STEPS INDICATOR
   ======================== */
.lithops-progress-steps {
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 2rem;
	position: relative;
}

.lithops-progress-steps .step {
	display: flex;
	flex-direction: column;
	align-items: center;
	z-index: 2;
}

.lithops-progress-steps .step-number {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: #e9ecef;
	color: #6c757d;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 600;
	font-size: 1rem;
	transition: all 0.3s ease;
	margin-bottom: 0.5rem;
}

.lithops-progress-steps .step.active .step-number,
.lithops-progress-steps .step.completed .step-number {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: #fff;
	box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.lithops-progress-steps .step-label {
	font-size: 0.85rem;
	color: #6c757d;
	font-weight: 500;
}

.lithops-progress-steps .step.active .step-label,
.lithops-progress-steps .step.completed .step-label {
	color: #667eea;
	font-weight: 600;
}

.lithops-progress-steps .step-line {
	height: 2px;
	width: 80px;
	background: #e9ecef;
	margin: 0 10px;
	margin-bottom: 2rem;
	position: relative;
	transition: background 0.3s ease;
}

.lithops-progress-steps .step.completed ~ .step-line {
	background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
}

/* ========================
   FORM HEADER
   ======================== */
.lithops-form-header {
	margin-bottom: 2rem;
}

.lithops-form-title {
	font-size: 1.75rem;
	font-weight: 600;
	color: #2c3e50;
	margin-bottom: 0.5rem;
}

.lithops-form-description {
	font-size: 0.95rem;
	color: #6c757d;
}

/* ========================
   FORM STEPS
   ======================== */
.lithops-form-step {
	display: none;
}

.lithops-form-step.active {
	display: block;
	animation: fadeIn 0.3s ease;
}

.lithops-success-step {
	display: none;
	text-align: center;
}

.lithops-success-step.active {
	display: block;
	animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY(10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* ========================
   MESSAGES
   ======================== */
.lithops-message-container {
	margin-bottom: 1.5rem;
}

.lithops-message-container .alert {
	margin-bottom: 0;
}

.lithops-auth-message {
	display: flex;
	align-items: center;
}

/* ========================
   SUCCESS SCREEN
   ======================== */
.lithops-success-icon {
	font-size: 4rem;
	color: #28a745;
	margin-bottom: 1rem;
}

.lithops-success-icon i {
	display: inline-block;
}

.lithops-success-content h3 {
	color: #2c3e50;
	font-weight: 600;
	margin-bottom: 0.75rem;
}

.lithops-success-content p {
	color: #6c757d;
	margin-bottom: 0;
}

/* ========================
   BUTTONS
   ======================== */
.lithops-btn-primary {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	border: none;
	padding: 0.75rem 1.5rem;
	font-weight: 500;
	transition: all 0.3s ease;
	color: #fff;
}

.lithops-btn-primary:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
	background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
	color: #fff;
}

.lithops-btn-primary:focus {
	box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.lithops-btn-back {
	color: #6c757d;
	text-decoration: none;
	font-size: 0.9rem;
	display: inline-flex;
	align-items: center;
	transition: color 0.3s ease;
}

.lithops-btn-back:hover {
	color: #495057;
	text-decoration: none;
}

.lithops-btn-back i {
	margin-right: 0.5rem;
}

/* ========================
   FORM CONTROLS
   ======================== */
.form-control:focus {
	border-color: #667eea;
	box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.input-group .form-control {
	border-right: 0;
}

.input-group .input-group-text {
	background: transparent;
	border-left: 0;
	cursor: pointer;
}

.input-group .input-group-text:hover {
	background-color: #f8f9fa;
}

/* ========================
   CODE INPUT
   ======================== */
.lithops-code-input {
	text-align: center;
	font-size: 1.5rem;
	letter-spacing: 0.5rem;
	font-weight: 600;
	font-family: 'Courier New', monospace;
}

/* ========================
   LINKS
   ======================== */
.lithops-form-footer {
	margin-top: 1.5rem;
	padding-top: 1.5rem;
	border-top: 1px solid #e9ecef;
	text-align: center;
}

.lithops-form-footer a {
	color: #667eea;
	text-decoration: none;
	font-weight: 500;
	transition: color 0.3s ease;
}

.lithops-form-footer a:hover {
	color: #764ba2;
	text-decoration: underline;
}

/* ========================
   RESEND CODE
   ======================== */
.lithops-resend-code {
	font-size: 0.9rem;
	color: #667eea;
	background: none;
	border: none;
	padding: 0;
	text-decoration: underline;
	cursor: pointer;
	transition: color 0.3s ease;
}

.lithops-resend-code:hover {
	color: #764ba2;
}

.lithops-resend-code:disabled {
	color: #6c757d;
	text-decoration: none;
	cursor: not-allowed;
}

/* ========================
   SPINNER
   ======================== */
.spinner-border.d-none {
	display: none !important;
}

.btn .spinner-border {
	width: 1rem;
	height: 1rem;
	border-width: 0.15em;
	margin-left: 0.5rem;
}

/* ========================
   RESPONSIVE
   ======================== */
@media (max-width: 576px) {
	.lithops-auth-container {
		margin: 1rem auto;
		padding: 0 10px;
	}

	.lithops-auth-form {
		padding: 1.5rem;
	}

	.lithops-form-title {
		font-size: 1.5rem;
	}

	.lithops-progress-steps .step-number {
		width: 35px;
		height: 35px;
		font-size: 0.9rem;
	}

	.lithops-progress-steps .step-label {
		font-size: 0.75rem;
	}

	.lithops-progress-steps .step-line {
		width: 50px;
	}

	.lithops-code-input {
		font-size: 1.25rem;
		letter-spacing: 0.3rem;
	}

	.lithops-success-icon {
		font-size: 3rem;
	}
}
