/**
 * Onboarding Service Styles
 * Extracted from OnboardingService.js for better maintainability
 */

/* ========================================
   OVERLAY & CONTAINER
======================================== */
.onboarding-overlay {
    position: fixed;
    inset: 0;
    background: rgb(0 0 0 / 50%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.onboarding-container {
    background: white;
    border-radius: 14.4px;
    max-width: 540px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 28.8px 21.6px;
    box-shadow: 0 18px 54px rgb(0 0 0 / 30%);
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(18px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes shake {
    0%,
    100% {
        transform: translateX(0);
    }

    10%,
    30%,
    50%,
    70%,
    90% {
        transform: translateX(-3.6px);
    }

    20%,
    40%,
    60%,
    80% {
        transform: translateX(3.6px);
    }
}

/* Mobile optimizations */
@media (width <= 640px) {
    .onboarding-container {
        width: 90%;
        max-height: 90vh;
        padding: 18px 14.4px;
        border-radius: 10.8px;
    }
}

/* ========================================
   PROGRESS BAR
======================================== */
.onboarding-progress {
    display: flex;
    justify-content: space-between;
    margin-bottom: 25.2px;
    position: relative;
}

@media (width <= 640px) {
    .onboarding-progress {
        margin-bottom: 18px;
    }
}

.progress-step {
    flex: 1;
    display: flex;
    align-items: center;
}

.progress-dot {
    width: 14.4px;
    height: 14.4px;
    border-radius: 50%;
    background: #e5e7eb;
    position: relative;
    z-index: 1;
}

.progress-step.active .progress-dot {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
}

.progress-line {
    flex: 1;
    height: 1.8px;
    background: #e5e7eb;
    margin: 0 7.2px;
}

.progress-step.active .progress-line {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
}

/* ========================================
   CONTENT
======================================== */
.onboarding-content {
    margin-bottom: 21.6px;
}

.onboarding-title {
    font-size: 24.6px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 9px;
}

@media (width <= 640px) {
    .onboarding-title {
        font-size: 20.8px;
        margin-bottom: 7.2px;
    }
}

.onboarding-subtitle {
    font-size: 14.2px;
    color: #6b7280;
    margin: 0 0 21.6px;
    line-height: 1.5;
}

@media (width <= 640px) {
    .onboarding-subtitle {
        font-size: 13.2px;
        margin-bottom: 18px;
    }
}

/* ========================================
   FORMS
======================================== */
.onboarding-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 7.2px;
}

.form-label {
    font-size: 13.2px;
    font-weight: 600;
    color: #374151;
}

.form-input {
    padding: 10.8px 14.4px;
    border: 0.9px solid #d1d5db;
    border-radius: 7.2px;
    font-size: 14.2px;
    transition: all 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 2.7px rgb(99 102 241 / 10%);
}

.form-select {
    padding: 10.8px 14.4px;
    border: 0.9px solid #d1d5db;
    border-radius: 7.2px;
    font-size: 14.2px;
    cursor: pointer;
    transition: all 0.2s;
    background: white;
}

.form-select:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 2.7px rgb(99 102 241 / 10%);
}

.form-hint {
    font-size: 12.3px;
    color: #6b7280;
    margin-top: 3.6px;
    font-style: italic;
}

/* ========================================
   BUTTONS
======================================== */
.onboarding-actions {
    display: flex;
    gap: 10.8px;
    justify-content: flex-end;
}

.onboarding-btn {
    padding: 10.8px 21.6px;
    border-radius: 7.2px;
    font-size: 14.2px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.onboarding-btn-primary {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
}

.onboarding-btn-primary:hover {
    transform: translateY(-1.8px);
    box-shadow: 0 3.6px 10.8px rgb(99 102 241 / 40%);
}

.onboarding-btn-secondary {
    background: #f3f4f6;
    color: #374151;
}

.onboarding-btn-secondary:hover {
    background: #e5e7eb;
}

/* ========================================
   WELCOME SCREEN
======================================== */
.welcome-icon {
    font-size: 52.9px;
    text-align: center;
    margin-bottom: 14.4px;
}

@media (width <= 640px) {
    .welcome-icon {
        font-size: 45.4px;
        margin-bottom: 10.8px;
    }
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 18px 0;
}

@media (width <= 640px) {
    .feature-list {
        margin: 14.4px 0;
    }
}

.feature-list li {
    padding: 9px 0;
    display: flex;
    align-items: center;
    gap: 10.8px;
    font-size: 14.2px;
    color: #374151;
}

@media (width <= 640px) {
    .feature-list li {
        padding: 7.2px 0;
        font-size: 13.2px;
    }
}

.feature-list li::before {
    content: '✓';
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    border-radius: 50%;
    width: 21.6px;
    height: 21.6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

/* ========================================
   AUTH SCREEN
======================================== */
.auth-container {
    margin-top: 28.8px;
}

.auth-btn {
    width: 100%;
    padding: 12.6px 18px;
    border-radius: 7.2px;
    font-size: 14.2px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-btn-google {
    background: white;
    border: 1.8px solid #e5e7eb;
    color: #374151;
    margin-bottom: 18px;
}

.auth-btn-google:hover {
    background: #f9fafb;
    border-color: #d1d5db;
}

.auth-btn-primary {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
}

.auth-btn-primary:hover {
    transform: translateY(-1.8px);
    box-shadow: 0 3.6px 10.8px rgb(99 102 241 / 40%);
}

.auth-divider {
    position: relative;
    text-align: center;
    margin: 21.6px 0;
}

.auth-divider::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 0.9px;
    background: #e5e7eb;
}

.auth-divider span {
    position: relative;
    background: white;
    padding: 0 14.4px;
    color: #9ca3af;
    font-size: 13.2px;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 14.4px;
}

/* Show/hide-password eye on the auth step. Same control as the public
   auth pages (css/auth.css), restated here because the onboarding modal
   never loads that stylesheet. Toggling is handled by
   OnboardingController.handleTogglePassword. */
.password-row {
    position: relative;
    display: flex;
    flex-direction: column;
}

.password-row .form-input {
    padding-right: 41.4px;
}

.password-row .toggle-pw {
    position: absolute;
    right: 10.8px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 25.2px;
    height: 25.2px;
    padding: 0;
    background: none;
    border: none;
    border-radius: 5.4px;
    cursor: pointer;
    color: #9ca3af;
    transition: color 0.2s;
}

.password-row .toggle-pw:hover {
    color: #4b5563;
}

.password-row .toggle-pw:focus-visible {
    outline: 1.8px solid #6366f1;
    outline-offset: 1.8px;
}

.auth-footer {
    text-align: center;
    margin-top: 10.8px;
}

.auth-link {
    color: #6366f1;
    text-decoration: none;
    font-size: 13.2px;
}

.auth-link:hover {
    text-decoration: underline;
}

/* ========================================
   EMAIL VERIFICATION
======================================== */
.email-verification-status {
    margin: 27px 0;
    padding: 18px;
    background: rgb(103 126 234 / 5%);
    border: 1.8px solid rgb(103 126 234 / 20%);
    border-radius: 10.8px;
    text-align: center;
}

.verification-pending {
    color: #374151;
}

.verification-icon {
    width: 43.2px;
    height: 43.2px;
    margin: 0 auto 13.5px;
    color: #667eea;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.verification-hint {
    font-size: 13.2px;
    color: #6b7280;
    margin-top: 9px;
}

.email-verification-actions {
    display: flex;
    gap: 9px;
    justify-content: center;
    margin-top: 18px;
    flex-wrap: wrap;
}

.verification-success {
    color: #059669;
}

.verification-success .verification-icon {
    color: #059669;
    animation: none;
}

/* ========================================
   TERMS AGREEMENT
======================================== */
.terms-agreement {
    margin: 21.6px 0;
    padding: 14.4px;
    background: #f9fafb;
    border-radius: 7.2px;
    border: 0.9px solid #e5e7eb;
}

@media (width <= 640px) {
    .terms-agreement {
        margin: 18px 0;
        padding: 12.6px;
    }
}

.terms-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    cursor: pointer;
}

.terms-checkbox {
    margin-top: 2.7px;
    width: 16.2px;
    height: 16.2px;
    cursor: pointer;
    flex-shrink: 0;
}

.terms-text {
    font-size: 13.2px;
    color: #374151;
    line-height: 1.5;
}

@media (width <= 640px) {
    .terms-text {
        font-size: 12.3px;
    }
}

.terms-link {
    color: #6366f1;
    text-decoration: none;
    font-weight: 600;
}

.terms-link:hover {
    text-decoration: underline;
}
