/* ============================================
   RESET & BASE STYLES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #F0FFF4 0%, #E6FFFA 100%);
    color: #1F2937;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

body.dark-theme {
    background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
    color: #F1F5F9;
}

/* ============================================
   CONTAINER & LAYOUT
   ============================================ */
.container {
    width: 100%;
    max-width: 500px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(1, 160, 96, 0.2);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    overflow: hidden;
    border: 1px solid rgba(1, 160, 96, 0.1);
    animation: slideUp 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

body.dark-theme .container {
    background: rgba(15, 23, 42, 0.95);
    border-color: rgba(255, 255, 255, 0.1);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   HEADER STYLES
   ============================================ */
.header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 24px 32px;
    border-bottom: 1px solid rgba(1, 160, 96, 0.1);
    background: linear-gradient(135deg, #01A060 0%, #008554 100%);
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: #FFFFFF;
    text-align: center;
}

/* ============================================
   MAIN CONTENT
   ============================================ */
.main-content {
    padding: 40px 32px;
}

/* Instructions */
.instructions {
    text-align: center;
    margin-bottom: 40px;
}

.instruction-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #01A060 0%, #008554 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    font-size: 32px;
    box-shadow: 0 10px 25px rgba(1, 160, 96, 0.3);
    animation: pulse 2s infinite alternate;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 10px 25px rgba(1, 160, 96, 0.3);
    }
    100% {
        transform: scale(1.05);
        box-shadow: 0 15px 30px rgba(1, 160, 96, 0.3);
    }
}

.instructions h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #01A060 30%, #00C274 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

body.dark-theme .instructions h2 {
    color: #F1F5F9;
}

.instruction-text {
    font-size: 15px;
    color: #6B7280;
    line-height: 1.7;
    max-width: 400px;
    margin: 0 auto;
}

body.dark-theme .instruction-text {
    color: #94A3B8;
}

/* Form Section */
.form-section {
    margin-bottom: 40px;
}

.input-group {
    margin-bottom: 32px;
}

.input-group label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 16px;
    font-weight: 500;
    color: #1F2937;
}

body.dark-theme .input-group label {
    color: #F1F5F9;
}

.input-group label i {
    color: #01A060;
    font-size: 18px;
}

.input-group input {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #D1D5E0;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #E6FFFA;
    color: #1F2937;
    font-family: 'Inter', sans-serif;
}

.input-group input:focus {
    outline: none;
    border-color: #01A060;
    box-shadow: 0 0 0 3px rgba(1, 160, 96, 0.1);
    background: #FFFFFF;
}

body.dark-theme .input-group input {
    background: rgba(255, 255, 255, 0.05);
    border-color: #334155;
    color: #F1F5F9;
}

body.dark-theme .input-group input:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: #00C274;
    box-shadow: 0 0 0 3px rgba(0, 194, 116, 0.1);
}

.input-hint {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    font-size: 13px;
    color: #6B7280;
}

.input-hint i {
    color: #01A060;
    font-size: 14px;
}

/* Submit Button */
.form-actions {
    margin-top: 32px;
}

.submit-btn {
    width: 100%;
    padding: 18px 24px;
    background: linear-gradient(135deg, #01A060 0%, #008554 100%);
    border: none;
    border-radius: 12px;
    color: #FFFFFF;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.7s;
}

.submit-btn:hover::before {
    left: 100%;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(1, 160, 96, 0.3);
    background: linear-gradient(135deg, #00C274 0%, #01A060 100%);
}

.submit-btn:active {
    transform: scale(0.98);
}

.submit-btn i {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.submit-btn:hover i {
    transform: translateX(5px);
}

/* Security Note */
.security-note {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(1, 160, 96, 0.05) 0%, rgba(0, 194, 116, 0.05) 100%);
    border-radius: 12px;
    border: 1px solid rgba(1, 160, 96, 0.1);
    margin-top: 32px;
}

body.dark-theme .security-note {
    background: linear-gradient(135deg, rgba(1, 160, 96, 0.1) 0%, rgba(0, 194, 116, 0.1) 100%);
    border-color: rgba(255, 255, 255, 0.1);
}

.security-note i {
    color: #01A060;
    font-size: 20px;
    margin-top: 2px;
}

.security-note p {
    font-size: 14px;
    color: #6B7280;
    line-height: 1.6;
}

body.dark-theme .security-note p {
    color: #94A3B8;
}

/* Alternative Options */
.alternative-options {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid rgba(1, 160, 96, 0.1);
}

.alternative-text {
    font-size: 14px;
    color: #6B7280;
    margin-bottom: 16px;
}

body.dark-theme .alternative-text {
    color: #94A3B8;
}

.alternative-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #01A060;
    text-decoration: none;
    font-weight: 500;
    padding: 12px 24px;
    border: 1px solid rgba(1, 160, 96, 0.3);
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.alternative-link:hover {
    background: rgba(1, 160, 96, 0.1);
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(1, 160, 96, 0.1);
}

.alternative-link i {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.alternative-link:hover i {
    transform: rotate(180deg);
}

body.dark-theme .alternative-link {
    color: #00C274;
}

body.dark-theme .alternative-link:hover {
    background: rgba(0, 194, 116, 0.1);
}

/* ============================================
   NOTIFICATION STYLES
   ============================================ */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #01A060 0%, #008554 100%);
    color: #FFFFFF;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(1, 160, 96, 0.2);
    z-index: 10000;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    max-width: 400px;
    transform: translateX(120%);
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.notification.show {
    transform: translateX(0);
}

.notification-icon {
    font-size: 24px;
    color: #FFFFFF;
}

.notification-content {
    flex: 1;
}

.notification-content h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.notification-content p {
    font-size: 14px;
    opacity: 0.9;
    line-height: 1.5;
}

.notification-close {
    background: none;
    border: none;
    color: #FFFFFF;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 18px;
    opacity: 0.7;
}

.notification-close:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.2);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 768px) {
    .container {
        max-width: 100%;
        margin: 0 20px;
    }
    
    .header {
        padding: 20px;
    }
    
    .main-content {
        padding: 32px 24px;
    }
    
    .instructions h2 {
        font-size: 24px;
    }
    
    .instruction-icon {
        width: 64px;
        height: 64px;
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }
    
    .header {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    .logo {
        order: -1;
    }
    
    .input-group input {
        padding: 14px 16px;
    }
    
    .notification {
        left: 10px;
        right: 10px;
        max-width: none;
    }
}

/* ============================================
   SETTINGS ICON CSS (EXACT AS GIVEN - NO CHANGES)
   ============================================ */
.settings-icon {
    position: fixed;
    top: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(67, 98, 201, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.settings-icon:hover {
    transform: scale(1.1) rotate(90deg);
    background: rgba(67, 98, 201, 0.1);
    border-color: #4362C9;
    box-shadow: 0 8px 25px rgba(67, 98, 201, 0.15);
}

.settings-icon svg {
    color: #4362C9;
    transition: color 0.3s ease;
}

.settings-icon:hover svg {
    color: #01A060;
}

body.dark-theme .settings-icon {
    background: rgba(26, 26, 26, 0.95);
    border-color: rgba(255, 255, 255, 0.2);
}

body.dark-theme .settings-icon:hover {
    background: rgba(67, 98, 201, 0.2);
    border-color: #4362C9;
}

/* SETTINGS DROPDOWN CSS (EXACT AS GIVEN - NO CHANGES) */
.settings-dropdown {
    position: fixed;
    top: 90px;
    right: 30px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(67, 98, 201, 0.2);
    border-radius: 16px;
    padding: 24px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 280px;
}

.settings-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

body.dark-theme .settings-dropdown {
    background: rgba(26, 26, 26, 0.95);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.settings-section {
    margin-bottom: 24px;
}

.settings-section:last-child {
    margin-bottom: 0;
}

.settings-heading {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #4362C9 0%, #01A060 40%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

body.dark-theme .settings-heading {
    background: linear-gradient(135deg, #4362C9 0%, #01A060 40%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Language Switcher */
.language-switcher {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.language-option {
    padding: 8px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: transparent;
    color: #666666;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
}

.language-option:hover {
    border-color: #4362C9;
    color: #4362C9;
    transform: translateY(-1px);
}

.language-option.active {
    background: #4362C9;
    border-color: #4362C9;
    color: #ffffff;
}

body.dark-theme .language-option {
    border-color: #444444;
    color: #cccccc;
}

body.dark-theme .language-option:hover {
    border-color: #6B8CFF;
    color: #6B8CFF;
}

body.dark-theme .language-option.active {
    background: #6B8CFF;
    border-color: #6B8CFF;
    color: #ffffff;
}

/* Theme Switcher */
.theme-switcher {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.theme-option {
    padding: 8px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: transparent;
    color: #666666;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    flex: 1;
    min-width: 80px;
}

.theme-option:hover {
    border-color: #01A060;
    color: #01A060;
    transform: translateY(-1px);
}

.theme-option.active {
    background: #01A060;
    border-color: #01A060;
    color: #ffffff;
}

body.dark-theme .theme-option {
    border-color: #444444;
    color: #cccccc;
}

body.dark-theme .theme-option:hover {
    border-color: #00C274;
    color: #00C274;
}

body.dark-theme .theme-option.active {
    background: #00C274;
    border-color: #00C274;
    color: #ffffff;
}