/* Glamour ERP Login - Editorial Luxury Design */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;1,400&family=Outfit:wght@300;400;500;600&display=swap');

:root {
    --login-bg: #0d0d0d;
    --login-surface: #161616;
    --login-border: rgba(255, 255, 255, 0.08);
    --login-accent: #c9a962;
    --login-accent-hover: #d4b872;
    --login-text: #f5f5f5;
    --login-text-muted: #8a8a8a;
    --login-input-bg: rgba(255, 255, 255, 0.04);
    --login-input-focus: rgba(201, 169, 98, 0.2);
}

* {
    box-sizing: border-box;
}

.login-page {
    min-height: 100vh;
    display: flex;
    font-family: 'Outfit', sans-serif;
    background: var(--login-bg);
    color: var(--login-text);
}

/* Left Panel - Brand */
.login-brand {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4rem 5rem;
    position: relative;
    overflow: hidden;
}

.login-brand::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse 80% 50% at 20% 50%, rgba(201, 169, 98, 0.12) 0%, transparent 50%),
        linear-gradient(135deg, rgba(201, 169, 98, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.login-brand-content {
    position: relative;
    z-index: 1;
}

.login-brand h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 600;
    letter-spacing: 0.02em;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #fff 0%, var(--login-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.login-brand .tagline {
    font-size: 1rem;
    font-weight: 300;
    color: var(--login-text-muted);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-top: 1rem;
}

/* Right Panel - Form */
.login-form-panel {
    width: min(480px, 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    background: var(--login-surface);
    border-left: 1px solid var(--login-border);
}

.login-form-wrapper {
    width: 100%;
    max-width: 340px;
}

.login-form-wrapper h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.login-form-wrapper .subtitle {
    font-size: 0.9rem;
    color: var(--login-text-muted);
    margin-bottom: 2.5rem;
}

/* Form Elements */
.login-form .form-group {
    margin-bottom: 1.5rem;
}

.login-form label {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--login-text-muted);
    margin-bottom: 0.5rem;
    letter-spacing: 0.05em;
}

.login-form input {
    width: 100%;
    padding: 0.9rem 1rem;
    background: var(--login-input-bg);
    border: 1px solid var(--login-border);
    border-radius: 6px;
    color: var(--login-text);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.login-form input::placeholder {
    color: var(--login-text-muted);
}

.login-form input:focus {
    outline: none;
    border-color: var(--login-accent);
    box-shadow: 0 0 0 3px var(--login-input-focus);
}

.login-form input:autofill {
    -webkit-text-fill-color: var(--login-text);
    -webkit-box-shadow: 0 0 0 1000px var(--login-input-bg) inset;
}

/* Submit Button */
.login-form .btn-submit {
    width: 100%;
    padding: 1rem 1.5rem;
    margin-top: 0.5rem;
    background: var(--login-accent);
    color: var(--login-bg);
    border: none;
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
}

.login-form .btn-submit:hover {
    background: var(--login-accent-hover);
    transform: translateY(-1px);
}

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

/* Forgot Password */
.login-form .forgot-link {
    display: block;
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.85rem;
    color: var(--login-text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.login-form .forgot-link:hover {
    color: var(--login-accent);
}

/* Alerts */
.login-alert {
    padding: 1rem 1.25rem;
    border-radius: 6px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.login-alert-danger {
    background: rgba(220, 53, 69, 0.15);
    border: 1px solid rgba(220, 53, 69, 0.3);
    color: #f8a5b0;
}

.login-alert-success {
    background: rgba(40, 167, 69, 0.15);
    border: 1px solid rgba(40, 167, 69, 0.3);
    color: #7dd99e;
}

/* Responsive */
@media (max-width: 992px) {
    .login-page {
        flex-direction: column;
    }

    .login-brand {
        padding: 3rem 2rem;
        min-height: 30vh;
    }

    .login-form-panel {
        width: 100%;
        border-left: none;
        border-top: 1px solid var(--login-border);
    }
}

@media (max-width: 480px) {
    .login-brand {
        padding: 2rem 1.5rem;
    }

    .login-form-panel {
        padding: 2rem 1.5rem;
    }
}
