﻿/* =============================================
   EM Solutions — Auth CSS
   Design System: Premium Travel Marketing
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700;800;900&display=swap');

:root {
    --bg: #FAF6F0;
    --surface: rgba(255,255,255,.88);
    --surface-strong: rgba(255,255,255,.96);
    --text: #2a1515;
    --text-muted: #6e5b51;
    --primary: #560A15;
    --secondary: #7B2D3E;
    --gold: #C9A84C;
    --gold-light: #E8C97A;
    --border: rgba(86,10,21,.12);
}

* { box-sizing: border-box; }

body.auth-body {
    font-family: 'Cairo', 'Segoe UI', Tahoma, sans-serif;
    min-height: 100vh;
    margin: 0;
    color: var(--text);
    background: radial-gradient(circle at top right, rgba(201,168,76,.12), transparent 18%),
                radial-gradient(circle at bottom left, rgba(123,45,62,.1), transparent 18%),
                var(--bg);
}

body.auth-body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: repeating-radial-gradient(circle at center, rgba(255,255,255,.03) 0, rgba(255,255,255,0) 18px);
    opacity: .16;
    pointer-events: none;
}

.auth-wrapper {
    display: grid;
    grid-template-columns: minmax(320px, 48%) minmax(360px, 52%);
    min-height: 100vh;
}

.auth-brand {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #4d0712 0%, #560A15 100%);
    color: #fff;
    padding: 4rem 3.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-brand::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 85% 10%, rgba(201,168,76,.18), transparent 26%),
                radial-gradient(circle at 20% 90%, rgba(255,255,255,.08), transparent 24%);
    pointer-events: none;
}

.auth-brand::after {
    content: '';
    position: absolute;
    right: -20%;
    top: 20%;
    width: 260px;
    height: 260px;
    background: rgba(232,200,122,.14);
    filter: blur(38px);
    border-radius: 50%;
    pointer-events: none;
}

.auth-brand .content {
    position: relative;
    z-index: 1;
    max-width: 530px;
}

.auth-brand .logo {
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 1.8rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    letter-spacing: -.6px;
}

.auth-brand .logo span {
    color: var(--gold);
}

.auth-brand .logo-icon {
    width: 54px;
    height: 54px;
    background: rgba(255,255,255,.18);
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 18px 40px rgba(0,0,0,.18);
}

.auth-brand .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    text-transform: uppercase;
    letter-spacing: .24em;
    font-size: .8rem;
    color: rgba(255,255,255,.76);
    margin-bottom: 1.5rem;
}

.auth-brand h1 {
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 800;
    line-height: 1.05;
    margin-bottom: 1.2rem;
}

.auth-brand h1 .highlight {
    color: var(--gold);
}

.auth-brand p {
    color: rgba(255,255,255,.88);
    max-width: 42rem;
    line-height: 1.9;
    margin-bottom: 2.5rem;
    font-size: 1.02rem;
}

.auth-features {
    display: grid;
    gap: 1rem;
}

.auth-features .feature {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.1rem 1.3rem;
    border-radius: 18px;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.14);
    backdrop-filter: blur(10px);
    transition: transform .3s, box-shadow .3s, background .3s;
}

.auth-features .feature:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 45px rgba(0,0,0,.16);
    background: rgba(255,255,255,.16);
}

.auth-features .feature i {
    font-size: 1.2rem;
    color: var(--gold);
    min-width: 36px;
}

.auth-features .feature span {
    font-size: .95rem;
    font-weight: 700;
}

.auth-back-home {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    color: rgba(255,255,255,.74);
    text-decoration: none;
    font-size: .9rem;
    z-index: 2;
    transition: color .25s ease;
}

.auth-back-home:hover {
    color: var(--gold-light);
}

.auth-form-side {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 2.5rem;
    background: #f9f4ee;
}

.auth-form-box {
    width: 100%;
    max-width: 500px;
    border-radius: 34px;
    background: radial-gradient(circle at top left, rgba(255,255,255,.98), rgba(255,255,255,.92) 65%);
    border: 1px solid rgba(86,10,21,.08);
    box-shadow: 0 25px 60px rgba(86,10,21,.08);
    padding: 3rem;
}

.auth-form-box .form-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-form-box .form-header h2 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: .5rem;
}

.auth-form-box .form-header p {
    color: var(--text-muted);
    font-size: 1rem;
}

.auth-input-group {
    margin-bottom: 1.35rem;
}

.auth-input-group label {
    display: block;
    margin-bottom: .45rem;
    font-weight: 700;
    color: var(--text);
    font-size: .92rem;
}

.auth-input-group .input-wrap {
    position: relative;
}

.auth-input-group .input-wrap i.field-icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1.1rem;
    pointer-events: none;
}

.auth-input-group .form-control {
    width: 100%;
    padding: 1rem 3rem 1rem 1.1rem;
    border-radius: 18px;
    border: 1px solid var(--border);
    background: rgba(255,255,255,.96);
    color: var(--text);
    font-size: .95rem;
    transition: border-color .25s ease, box-shadow .25s ease, background .25s ease;
}

.auth-input-group .form-control:focus {
    outline: none;
    border-color: rgba(123,45,62,.8);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(123,45,62,.08);
}

.auth-input-group .form-control::placeholder {
    color: #b79f7f;
}

.auth-input-group .form-control.is-invalid {
    border-color: #c0392b;
    background: #fff5f5;
}

.auth-input-group .toggle-password {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0;
    transition: color .25s ease;
}

.auth-input-group .toggle-password:hover {
    color: var(--primary);
}

.auth-input-group .invalid-feedback {
    margin-top: .45rem;
    color: #c0392b;
    font-size: .85rem;
}

.auth-remember {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.auth-remember label {
    display: flex;
    align-items: center;
    gap: .6rem;
    color: var(--text-muted);
    font-size: .9rem;
    font-weight: 600;
    cursor: pointer;
}

.auth-remember input[type="checkbox"] {
    accent-color: var(--primary);
    width: 16px;
    height: 16px;
}

.auth-remember a {
    color: var(--secondary);
    text-decoration: none;
    font-size: .9rem;
    font-weight: 700;
    transition: color .25s ease;
}

.auth-remember a:hover {
    color: var(--gold);
}

.btn-auth-submit {
    width: 100%;
    padding: 1rem 1.1rem;
    border: none;
    border-radius: 999px;
    background: linear-gradient(135deg, #bd972d 0%, #E8C97A 100%);
    color: #560A15;
    font-weight: 800;
    font-size: 1rem;
    letter-spacing: .02em;
    cursor: pointer;
    transition: transform .25s ease, box-shadow .25s ease, opacity .25s ease;
    box-shadow: 0 18px 42px rgba(201,168,76,.24);
    position: relative;
    overflow: hidden;
}

.btn-auth-submit::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(255,255,255,.15), transparent);
}

.btn-auth-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 55px rgba(201,168,76,.3);
    opacity: .98;
}

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

.auth-footer-link {
    margin-top: 1.75rem;
    text-align: center;
    color: var(--text-muted);
    font-size: .92rem;
}

.auth-footer-link a {
    color: var(--secondary);
    font-weight: 700;
    text-decoration: none;
    transition: color .25s ease;
}

.auth-footer-link a:hover {
    color: var(--gold);
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem 0;
    color: var(--text-muted);
    font-size: .83rem;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(86,10,21,.12);
}

@media (max-width: 991px) {
    .auth-wrapper { grid-template-columns: 1fr; }

    .auth-brand {
        padding: 2.5rem 1.8rem;
        min-height: auto;
    }

    .auth-brand h1 {
        font-size: 2rem;
    }

    .auth-features {
        display: none;
    }

    .auth-form-side {
        padding: 2.5rem 1.5rem;
    }
}

@media (max-width: 580px) {
    .auth-form-box {
        padding: 2rem;
        border-radius: 24px;
    }

    .auth-brand {
        padding: 2rem 1.25rem;
    }

    .auth-back-home {
        top: 1rem;
        left: 1rem;
        font-size: .82rem;
    }
}
