/* static/css/auth.css */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary-color: #7c3aed;
    /* Purple from logo */
    --primary-light: #8b5cf6;
    --primary-fade: rgba(124, 58, 237, 0.08);
    --bg-light: #f8fafc;
    --card-bg: #ffffff;
    --text-main: #1e293b;
    --text-secondary: #64748b;
    --border-color: #e2e8f0;
    --error-red: #ef4444;
    --success-green: #10b981;
    --radius-full: 9999px;
    --radius-xl: 24px;
    --radius-lg: 16px;
    --shadow-soft: 0 10px 25px -5px rgba(0, 0, 0, 0.04), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
    --shadow-luxe: 0 20px 40px -10px rgba(0, 0, 0, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

/* Background Decoration */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(at 0% 0%, hsla(263, 100%, 70%, 0.05) 0, transparent 50%),
        radial-gradient(at 100% 100%, hsla(263, 100%, 70%, 0.05) 0, transparent 50%);
    z-index: -1;
}

.auth-page-wrapper {
    width: 100%;
    max-width: 440px;
    animation: fadeInScale 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.96) translateY(10px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.auth-card-luxe {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 48px;
    box-shadow: var(--shadow-luxe);
    position: relative;
    overflow: hidden;
}

.auth-card-header {
    text-align: center;
    margin-bottom: 32px;
}

.logo-img {
    height: 60px;
    width: auto;
    margin-bottom: 24px;
}

.auth-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}

.auth-subtitle {
    font-size: 15px;
    color: var(--text-secondary);
}

/* Form Styles */
.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-main);
}

.form-control {
    width: 100%;
    padding: 14px 18px;
    background: #fff;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-lg);
    font-family: inherit;
    font-size: 15px;
    color: var(--text-main);
    transition: all 0.2s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px var(--primary-fade);
}

.password-wrapper {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
}

.password-toggle:hover {
    color: var(--primary-color);
}

/* Auth Row */
.auth-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    font-size: 14px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: var(--text-secondary);
    font-weight: 500;
}

.remember-me input {
    accent-color: var(--primary-color);
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.forgot-password {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.forgot-password:hover {
    text-decoration: underline;
}

/* Buttons */
.btn-primary {
    width: 100%;
    padding: 16px;
    background: var(--primary-color);
    color: #fff;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: var(--radius-lg);
    font-size: 16px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: all 0.15s ease;
    box-shadow: 0 5px 0 #6d28d9;
    margin-bottom: 5px;
}

.btn-primary:hover {
    background: var(--primary-light);
    transform: translateY(2px);
    box-shadow: 0 3px 0 #6d28d9, 0 8px 24px rgba(139, 92, 246, 0.25);
}

.btn-primary:active {
    transform: translateY(5px);
    box-shadow: 0 0px 0 #6d28d9;
}

.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 28px 0;
    color: var(--text-secondary);
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border-color);
}

.auth-divider span {
    padding: 0 16px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.btn-google {
    width: 100%;
    padding: 14px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: var(--radius-lg);
    color: var(--text-main);
    font-size: 15px;
    font-weight: 800;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-decoration: none;
    transition: all 0.15s ease;
    box-shadow: 0 5px 0 #cbd5e1;
    margin-bottom: 5px;
}

.btn-google:hover {
    background: var(--bg-light);
    transform: translateY(2px);
    box-shadow: 0 3px 0 #cbd5e1, 0 8px 16px rgba(0, 0, 0, 0.05);
}

.btn-google:active {
    transform: translateY(5px);
    box-shadow: 0 0px 0 #cbd5e1;
}

.btn-google svg {
    width: 20px;
    height: 20px;
}

.auth-footer {
    text-align: center;
    margin-top: 32px;
    font-size: 15px;
    color: var(--text-secondary);
}

.auth-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 700;
}

.auth-link:hover {
    text-decoration: underline;
}

/* Flash Messages */
.flash-messages {
    margin-bottom: 24px;
}

.alert {
    padding: 14px 18px;
    border-radius: var(--radius-lg);
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.alert-danger {
    background: #fef2f2;
    color: var(--error-red);
    border: 1px solid #fee2e2;
}

.alert-success {
    background: #f0fdf4;
    color: var(--success-green);
    border: 1px solid #dcfce7;
}

/* Strength Meter */
.strength-meter {
    height: 4px;
    width: 100%;
    background: var(--border-color);
    border-radius: 2px;
    margin-top: 10px;
    display: none;
}

.strength-bar {
    height: 100%;
    width: 0;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.strength-text {
    font-size: 12px;
    margin-top: 6px;
    color: var(--text-secondary);
    display: none;
}

/* Global Card Footer */
.auth-card-footer {
    margin-top: 48px;
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
    font-size: 13px;
    color: var(--text-secondary);
    opacity: 0.6;
}

/* Mobile Adjustments */
@media (max-width: 480px) {
    .auth-card-luxe {
        padding: 32px 24px;
    }
}