/* =========================================================
   Lumna Services - Customer Area Login
   Visual style aligned with the current index page
   ========================================================= */

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

:root {
    --primary-color: #1d2630;
    --gold: #b9852d;
    --gold-dark: #8e611d;
    --soft-gold: #e5d0a7;
    --cream: #fbf8f1;
    --warm-white: #fffdf8;
    --white: #ffffff;
    --ink: #17191b;
    --muted: #59626d;
    --border: rgba(185, 133, 45, 0.16);
    --shadow: 0 18px 45px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 20px 55px rgba(26, 31, 38, 0.14);
    --transition: all 0.3s ease;
}

html {
    min-height: 100%;
}

body {
    min-height: 100vh;
    font-family: 'Montserrat', sans-serif;
    color: var(--ink);
    background:
        radial-gradient(circle at 12% 18%, rgba(185, 133, 45, 0.16), transparent 28%),
        linear-gradient(180deg, #ffffff 0%, var(--cream) 52%, #ffffff 100%);
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0.18;
    background: linear-gradient(120deg, transparent 0 48%, rgba(185, 133, 45, 0.08) 48% 50%, transparent 50% 100%);
    z-index: -1;
}

/* ---------- Page Layout ---------- */
.login-page {
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 42px 22px;
}

.login-card {
    width: min(1120px, 100%);
    min-height: 660px;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

/* ---------- Lumna Logo ---------- */
.brand-logo {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    width: 100%;
    margin: 40px auto 0;
    text-decoration: none;
    transform: scale(1.15);
    transform-origin: center center;
}

.brand-symbol,
.brand-text {
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-symbol img {
    height: 62px;
    width: auto;
    display: block;
    filter:
        brightness(0)
        saturate(100%)
        invert(58%)
        sepia(48%)
        saturate(646%)
        hue-rotate(6deg)
        brightness(92%)
        contrast(90%);
}

.brand-text img {
    height: 29px;
    width: auto;
    display: block;
}

/* ---------- Left Branding Panel ---------- */
.login-brand-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 48px;
    background:
        linear-gradient(135deg, rgba(255, 253, 248, 0.96), rgba(251, 248, 241, 0.92)),
        radial-gradient(circle at 18% 22%, rgba(185, 133, 45, 0.26), transparent 30%);
}

.login-brand-panel::after {
    content: "";
    position: absolute;
    right: -90px;
    bottom: -70px;
    width: 300px;
    height: 300px;
    border: 1px solid rgba(185, 133, 45, 0.24);
    transform: skew(-8deg) rotate(7deg);
    opacity: 0.55;
}

.brand-content {
    position: relative;
    z-index: 1;
    max-width: 560px;
    margin-top: 100px;
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 18px;
    color: var(--gold);
    font-weight: 700;
    letter-spacing: 0.16em;
    font-size: 0.82rem;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.eyebrow::after {
    content: "";
    width: 96px;
    height: 1px;
    background: var(--gold);
    display: inline-block;
}

.brand-content h1,
.form-header h2 {
    font-family: 'Cormorant Garamond', serif;
    color: var(--ink);
    font-weight: 600;
    letter-spacing: -0.02em;
}

.brand-content h1 {
    font-size: clamp(3rem, 5vw, 5rem);
    line-height: 0.96;
    margin-bottom: 24px;
}

.brand-content h1 em {
    color: var(--gold);
    font-style: italic;
}

.brand-content p,
.form-header p {
    color: #3d4650;
    line-height: 1.85;
    font-size: 1.08rem;
    font-weight: 400;
}

.features {
    list-style: none;
    display: grid;
    gap: 14px;
    margin-top: 34px;
}

.features li {
    position: relative;
    padding: 16px 18px 16px 48px;
    border: 1px solid rgba(185, 133, 45, 0.14);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.62);
    color: #303946;
    font-size: 1.02rem;
    line-height: 1.5;
    font-weight: 500;
}

.features li::before {
    content: "✓";
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--gold);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
}

/* ---------- Form Panel ---------- */
.login-form-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 56px;
    background: var(--white);
    border-left: 1px solid rgba(185, 133, 45, 0.12);
}

.form-header {
    margin-bottom: 34px;
}

.form-header h2 {
    font-size: clamp(2.7rem, 4vw, 4rem);
    line-height: 1;
    margin-bottom: 12px;
}

form {
    display: grid;
    gap: 20px;
}

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

.form-group label {
    color: var(--primary-color);
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.form-group input[type="email"],
.form-group input[type="password"] {
    width: 100%;
    min-height: 54px;
    padding: 15px 16px;
    border-radius: 6px;
    border: 1px solid rgba(29, 38, 48, 0.18);
    background: var(--warm-white);
    color: #000;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    outline: none;
    transition: var(--transition);
}

.password-group input {
    padding-right: 52px;
}

.form-group input:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(185, 133, 45, 0.16);
    background: #fff;
}

.form-group input::placeholder {
    color: #89909a;
}

.toggle-password {
    position: absolute;
    right: 12px;
    bottom: 9px;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    opacity: 0.72;
    transition: var(--transition);
}

.toggle-password:hover {
    opacity: 1;
    background: rgba(185, 133, 45, 0.1);
}

.form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 2px;
}

.remember {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--muted);
    font-size: 0.96rem;
    cursor: pointer;
}

.remember input {
    width: 17px;
    height: 17px;
    accent-color: var(--gold);
}

/* Button with the same shine animation used on the index buttons */
.btn-login {
    transform: translateY(0);
    position: relative;
    overflow: hidden;
    width: 100%;
    min-height: 56px;
    margin-top: 12px;
    border: none;
    border-radius: 6px;
    background: linear-gradient(135deg, #c69a52, #a87322);
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.98rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 12px 24px rgba(185, 133, 45, 0.2);
}

.btn-login::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.34), transparent);
    transition: left 0.55s ease;
}

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

.btn-login:hover {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    transform: translateY(0);
    box-shadow: var(--shadow-hover);
}

/* ---------- Responsive / iPhone Optimization ---------- */
@media (max-width: 900px) {
    .login-page {
        align-items: flex-start;
        padding: 24px 14px;
    }

    .login-card {
        min-height: auto;
        grid-template-columns: 1fr;
    }

    .login-brand-panel,
    .login-form-panel {
        padding: 34px 24px;
    }

    .brand-content {
        margin-top: 42px;
    }

    .brand-content h1 {
        font-size: clamp(2.55rem, 13vw, 3.7rem);
    }

    .brand-content p,
    .form-header p {
        font-size: 1rem;
        line-height: 1.75;
    }

    .login-form-panel {
        border-left: 0;
        border-top: 1px solid rgba(185, 133, 45, 0.12);
    }
}

@media (max-width: 480px) {
    .login-page {
        padding: 14px 10px;
    }

    .login-card {
        border-radius: 10px;
    }

    .login-brand-panel,
    .login-form-panel {
        padding: 28px 18px;
    }

    .brand-logo {
        gap: 12px;
        margin-top: 28px;
        transform: scale(1.08);
    }

    .brand-symbol img {
        height: 52px;
    }

    .brand-text img {
        height: 24px;
    }

    .eyebrow {
        gap: 12px;
        font-size: 0.75rem;
    }

    .eyebrow::after {
        width: 58px;
    }

    .features li {
        padding: 14px 14px 14px 44px;
        font-size: 0.96rem;
    }

    .form-header {
        margin-bottom: 26px;
    }

    .form-header h2 {
        font-size: 2.8rem;
    }

    .form-group input[type="email"],
    .form-group input[type="password"],
    .btn-login {
        min-height: 52px;
        font-size: 0.95rem;
    }
}
