/**
 * 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: 16px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 32px 24px;
    box-shadow: 0 20px 60px rgb(0 0 0 / 30%);
    animation: slideUp 0.3s ease-out;
}

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

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

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

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

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

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

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

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

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

.progress-dot {
    width: 16px;
    height: 16px;
    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: 2px;
    background: #e5e7eb;
    margin: 0 8px;
}

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

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

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

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

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

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

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

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

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

.form-input {
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.2s;
}

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

.form-select {
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s;
    background: white;
}

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

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

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

.onboarding-btn {
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 15px;
    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(-2px);
    box-shadow: 0 4px 12px rgb(99 102 241 / 40%);
}

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

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

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

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

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

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

.feature-list li {
    padding: 10px 0;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    color: #374151;
}

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

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

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

.auth-btn {
    width: 100%;
    padding: 14px 20px;
    border-radius: 8px;
    font-size: 15px;
    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: 2px solid #e5e7eb;
    color: #374151;
    margin-bottom: 20px;
}

.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(-2px);
    box-shadow: 0 4px 12px rgb(99 102 241 / 40%);
}

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

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

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

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

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

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

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

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

.verification-pending {
    color: #374151;
}

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

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

    50% {
        opacity: 0.5;
    }
}

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

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

.verification-success {
    color: #059669;
}

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

/* ========================================
   TERMS AGREEMENT
======================================== */
.terms-agreement {
    margin: 24px 0;
    padding: 16px;
    background: #f9fafb;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

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

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

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

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

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

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

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