/* /assets/css/auth.v2.css */
/* Styles for Login & Registration Pages for iCloudExperts */

/* 1. Wrapper & Container
-------------------------------------------------- */
.auth-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - var(--header-height));
    padding: 40px 15px;
    background-color: #f8f9fa;
}

.auth-container {
    width: 100%;
    max-width: 500px;
}

/* 2. Card & Content
-------------------------------------------------- */
.auth-card {
    background-color: #fff;
    padding: 40px;
    border-radius: var(--border-radius, 12px);
    border: 1px solid var(--border-color, #d2d2d7);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
}

.auth-logo {
    font-weight: 700;
    font-size: 1.8rem;
    color: var(--text-color, #1d1d1f);
    text-decoration: none;
    margin-bottom: 0.5rem;
    display: block;
}

.auth-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.auth-intro {
    color: var(--text-muted-color, #6e6e73);
    margin-bottom: 2rem;
}

.auth-link {
    color: var(--primary-color, #007aff);
    text-decoration: none;
    font-weight: 500;
}

.auth-link:hover {
    text-decoration: underline;
}

/* 3. Forms & Inputs
-------------------------------------------------- */
.form-label {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.form-control, .form-select {
    height: 48px;
    padding: 0 15px;
    border-radius: 8px;
    border: 1px solid var(--border-color, #d2d2d7);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color, #007aff);
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.2);
    outline: none;
}

.form-control.is-invalid, .form-select.is-invalid {
    border-color: #dc3545;
}

.invalid-feedback {
    font-size: 0.875em;
}

/* 4. Buttons & Dividers
-------------------------------------------------- */
.btn-primary-custom, .btn-secondary-custom {
    padding-top: 12px;
    padding-bottom: 12px;
}

.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--text-muted-color, #6e6e73);
    margin: 2rem 0;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border-color, #d2d2d7);
}

.auth-divider:not(:empty)::before {
    margin-right: .5em;
}

.auth-divider:not(:empty)::after {
    margin-left: .5em;
}

.auth-footer {
    text-align: center;
    color: var(--text-muted-color, #6e6e73);
}

/* 5. Success State
-------------------------------------------------- */
.auth-success-icon {
    font-size: 4rem;
    color: #198754; /* Bootstrap success green */
}

/* 6. Multi-Step Form (Registration)
-------------------------------------------------- */
.form-step {
    display: none;
}
.form-step.active {
    display: block;
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.progress-bar-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start; /* Changed from center to flex-start */
    margin-bottom: 2.5rem; /* Increased margin */
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: var(--text-muted-color);
    transition: color 0.3s ease;
    width: 80px; /* Give steps a width */
    position: relative;
}

.progress-step .step-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #e9ecef;
    border: 2px solid #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
    z-index: 2; /* Ensure icon is above the line */
}

.progress-step .step-label {
    font-size: 0.8rem;
    font-weight: 500;
    margin-top: 0.75rem; /* Increased margin */
}

.progress-step.active {
    color: var(--primary-color);
}

.progress-step.active .step-icon {
    background-color: #fff;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.progress-step.completed .step-icon {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

.progress-line {
    flex-grow: 1;
    height: 2px;
    background-color: #e9ecef;
    margin: 0;
    position: relative;
    top: 17px; /* Align with middle of icons */
    z-index: 1;
}

.form-navigation {
    display: flex;
    justify-content: space-between;
}

.summary-box {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}
