/* Login Page Styles - Synchronized with Main Theme */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* CSS Variables - Sync with main theme */
:root {
    --primary-color: #1a1a1a;
    --secondary-color: #6b7280;
    --accent-color: #2563eb;
    --danger-color: #dc2626;
    --success-color: #059669;
    --warning-color: #d97706;
    
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --bg-card: #ffffff;
    --bg-hover: #f8fafc;
    --bg-muted: #f9fafb;
    
    --border-color: #e2e8f0;
    --border-hover: #cbd5e1;
    --border-focus: #2563eb;
    
    --text-primary: #111827;
    --text-secondary: #4b5563;
    --text-muted: #9ca3af;
    --text-inverse: #ffffff;
    
    --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    --radius-xs: 2px;
    --radius-sm: 4px;
    --radius: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-2xl: 24px;
    
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --transition-fast: 150ms ease;
    --transition-base: 200ms ease;
    --transition-slow: 300ms ease;
}

/* Reset và base styles */
body.login {
    background: var(--bg-secondary);
    font-family: var(--font-sans);
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Subtle background pattern */
body.login::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 1px 1px, rgba(26, 26, 26, 0.03) 1px, transparent 0);
    background-size: 20px 20px;
    pointer-events: none;
    z-index: 1;
}

/* Main login container */
#login {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
    z-index: 2;
}

/* Logo container */
.login h1 {
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
}

.login h1 a {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    display: inline-block;
    text-decoration: none;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-sm);
}

.login h1 a:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border-hover);
}

/* Logo text */
.login h1 a {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
}

/* Main form container */
.login form {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-2xl);
    padding: 3rem 2.5rem;
    box-shadow: var(--shadow-xl);
    position: relative;
    overflow: hidden;
}

.login form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--accent-color);
    border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
}



/* Form title */
.login form .login-title {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--text-primary);
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.025em;
}

/* Labels */
.login label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

/* Input fields */
.login input[type="text"],
.login input[type="password"],
.login input[type="email"] {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    font-size: 1rem;
    font-family: inherit;
    background: var(--bg-muted);
    transition: all var(--transition-base);
    margin-bottom: 1.5rem;
    box-sizing: border-box;
    color: var(--text-primary);
}

.login input[type="text"]:focus,
.login input[type="password"]:focus,
.login input[type="email"]:focus {
    outline: none;
    border-color: var(--border-focus);
    background: var(--bg-card);
    box-shadow: 
        0 0 0 3px rgba(37, 99, 235, 0.1),
        var(--shadow);
    transform: translateY(-1px);
}

/* Submit button */
.login .wp-submit {
    width: 100%;
    padding: 1rem 2rem;
    background: var(--accent-color);
    color: var(--text-inverse);
    border: none;
    border-radius: var(--radius-lg);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    position: relative;
    overflow: hidden;
}

.login .wp-submit:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: #1d4ed8;
}

.login .wp-submit:active {
    transform: translateY(0);
}

.login .wp-submit::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.5s;
}

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

/* Remember me checkbox */
.login .forgetmenot {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.login .forgetmenot input[type="checkbox"] {
    margin-right: 0.75rem;
    width: 18px;
    height: 18px;
    accent-color: var(--accent-color);
}

.login .forgetmenot label {
    margin: 0;
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--text-secondary);
    text-transform: none;
    letter-spacing: normal;
}

/* Navigation links */
.login #nav,
.login #backtoblog {
    text-align: center;
    margin-top: 1.5rem;
}

.login #nav a,
.login #backtoblog a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
    display: inline-block;
    margin: 0 0.5rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
}

.login #nav a:hover,
.login #backtoblog a:hover {
    background: var(--bg-card);
    transform: translateY(-1px);
    color: var(--text-primary);
    box-shadow: var(--shadow-sm);
}

/* Error messages */
.login #login_error,
.login .notice {
    background: rgba(220, 38, 38, 0.1);
    border: 1px solid rgba(220, 38, 38, 0.3);
    border-radius: var(--radius-lg);
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    color: var(--danger-color);
    font-size: 0.875rem;
}

/* Success messages */
.login .message {
    background: rgba(5, 150, 105, 0.1);
    border: 1px solid rgba(5, 150, 105, 0.3);
    border-radius: var(--radius-lg);
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    color: var(--success-color);
    font-size: 0.875rem;
}

/* Loading spinner */
.login .spinner {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    display: none;
}

/* Responsive design */
@media (max-width: 480px) {
    #login {
        padding: 1rem;
        max-width: 350px;
    }
    
    .login form {
        padding: 2rem 1.5rem;
        border-radius: 16px;
    }
    
    .login h1 a {
        padding: 1rem;
        font-size: 20px;
    }
    
    .login input[type="text"],
    .login input[type="password"],
    .login input[type="email"] {
        padding: 0.875rem 1rem;
        font-size: 0.9375rem;
    }
    
    .login .wp-submit {
        padding: 0.875rem 1.5rem;
        font-size: 0.9375rem;
    }
}

/* Registration page specific styles */
.login.registration form {
    max-width: 450px;
}

/* Animation cho form load */
.login form {
    animation: slideUp 0.6s ease-out;
}

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

/* Custom select styling */
.login select {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    font-size: 1rem;
    font-family: inherit;
    background: var(--bg-muted);
    transition: all var(--transition-base);
    margin-bottom: 1.5rem;
    appearance: none;
    color: var(--text-primary);
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor"><path fill-rule="evenodd" d="M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z" clip-rule="evenodd"/></svg>');
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.25rem;
}

.login select:focus {
    outline: none;
    border-color: var(--border-focus);
    background: var(--bg-card);
    box-shadow: 
        0 0 0 3px rgba(37, 99, 235, 0.1),
        var(--shadow);
} 