/* ============================================
   Authentication Pages Styles
   ============================================ */

:root {
    --auth-bg: #0a0e27;
    --auth-card-bg: rgba(20, 25, 50, 0.8);
    --auth-primary: #667eea;
    --auth-primary-hover: #5a67d8;
    --auth-text: #e2e8f0;
    --auth-text-secondary: #a0aec0;
    --auth-border: rgba(255, 255, 255, 0.1);
    --auth-error: #fc8181;
    --auth-success: #68d391;
    --auth-input-bg: rgba(30, 35, 60, 0.6);
}

/* Light Theme */
[data-theme="light"] {
    --auth-bg: #f8fafc;
    --auth-card-bg: rgba(255, 255, 255, 0.95);
    --auth-text: #1e293b;
    --auth-text-secondary: #475569;
    --auth-border: rgba(0, 0, 0, 0.1);
    --auth-input-bg: rgba(241, 245, 249, 0.8);
    --auth-error: #dc2626;
    --auth-success: #16a34a;
}

[data-theme="light"] body {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

[data-theme="light"] .form-group input:focus {
    background: rgba(255, 255, 255, 1);
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #0a0e27 0%, #1a1f3a 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--auth-text);
    padding: 20px;
}

.auth-container {
    width: 100%;
    max-width: 450px;
}

.auth-card {
    background: var(--auth-card-bg);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid var(--auth-border);
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.auth-header {
    text-align: center;
    margin-bottom: 40px;
}

.logo {
    font-size: 48px;
    margin-bottom: 20px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

.auth-header h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.auth-header p {
    color: var(--auth-text-secondary);
    font-size: 14px;
}

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

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

.form-group label {
    font-size: 14px;
    font-weight: 500;
    color: var(--auth-text);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"] {
    background: var(--auth-input-bg);
    border: 1px solid var(--auth-border);
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 15px;
    color: var(--auth-text);
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--auth-primary);
    background: rgba(30, 35, 60, 0.8);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group input::placeholder {
    color: var(--auth-text-secondary);
    opacity: 0.6;
}

.password-strength {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 4px;
}

.strength-bar {
    flex: 1;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.strength-fill {
    height: 100%;
    width: 0%;
    background: #ff4757;
    transition: all 0.3s ease;
}

.strength-text {
    font-size: 12px;
    font-weight: 500;
    color: #ff4757;
    min-width: 60px;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--auth-primary);
}

.link {
    color: var(--auth-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.link:hover {
    color: var(--auth-primary-hover);
    text-decoration: underline;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 10px;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 600;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

.btn-primary:active:not(:disabled) {
    transform: translateY(0);
}

.btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-text,
.btn-loader {
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.spinner {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.error-message,
.success-message {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
}

.error-message {
    background: rgba(252, 129, 129, 0.1);
    border: 1px solid rgba(252, 129, 129, 0.3);
    color: var(--auth-error);
}

.success-message {
    background: rgba(104, 211, 145, 0.1);
    border: 1px solid rgba(104, 211, 145, 0.3);
    color: var(--auth-success);
}

.hidden {
    display: none !important;
}

.auth-footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid var(--auth-border);
    font-size: 14px;
    color: var(--auth-text-secondary);
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.modal-content {
    background: var(--auth-card-bg);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid var(--auth-border);
    padding: 30px;
    max-width: 400px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.modal-header h2 {
    font-size: 22px;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    font-size: 28px;
    color: var(--auth-text-secondary);
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--auth-text);
}

/* Responsive */
@media (max-width: 480px) {
    .auth-card {
        padding: 30px 24px;
    }

    .auth-header h1 {
        font-size: 24px;
    }

    .form-options {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
}

.auth-legal-links {
    margin-top: 15px;
    font-size: 12px;
    color: var(--auth-text-secondary);
}

.auth-legal-links a {
    color: var(--auth-text-secondary);
    margin: 0 5px;
    text-decoration: none;
    transition: color 0.2s ease;
}

.auth-legal-links a:hover {
    color: var(--auth-primary);
    text-decoration: underline;
}