
/* =========================================
   HORUS LOGIN PAGE
========================================= */

:root {
    --primary: #9b713b;
    --primary-light: #c49a5d;

    --background: #100a05;
    --card: #21170e;

    --text: #eee2cf;
    --muted: #a18d73;

    --border: #453522;

    --gold: #a77b3e;
    --gold-light: #d0aa70;

    --intro-background: #100a05;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    height: 100%;
    min-height: 100%;
    overflow: hidden;
}

body {
    font-family: 'Cairo', sans-serif;
    background: var(--background);
    color: var(--text);
}

/* =========================================
   MAIN LAYOUT
========================================= */

.login-page {
    width: 100%;
    height: 100vh;
    height: 100dvh;

    display: grid;
    grid-template-columns: 1fr 1fr;

    overflow: hidden;
}

/* =========================================
   LOGIN SECTION
========================================= */

.login-card {
    height: 100%;
    min-width: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    background: linear-gradient(
        145deg,
        #2b2014,
        #181008
    );

    padding: clamp(20px, 4vh, 45px) clamp(20px, 5vw, 70px);

    overflow: hidden;
}

.login-inner {
    width: 100%;
    max-width: 440px;
}

/* =========================================
   BRAND
========================================= */

.brand {
    display: flex;
    align-items: center;
    gap: 14px;

    margin-bottom: clamp(22px, 4vh, 42px);
}

.brand-logo {
    width: 52px;
    height: 52px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 15px;

    background: linear-gradient(
        135deg,
        #b98b48,
        #68451f
    );

    color: #fff8eb;

    font-size: 29px;
    font-weight: 800;

    box-shadow: 0 8px 24px rgba(0, 0, 0, .3);
}

.brand-info h1 {
    font-size: 23px;
    font-weight: 800;
    letter-spacing: 2px;

    color: #e8d5b6;
}

.brand-info span {
    display: block;

    color: #a18d73;
    font-size: 11px;
    font-weight: 500;
}

/* =========================================
   WELCOME
========================================= */

.welcome {
    margin-bottom: clamp(20px, 3.5vh, 35px);
}

.welcome h2 {
    margin-bottom: 7px;

    color: #f0e3d0;

    font-size: clamp(23px, 2.2vw, 29px);
    font-weight: 800;
}

.welcome p {
    color: #a18d73;

    font-size: 13px;
    line-height: 1.8;
}

/* =========================================
   FORM
========================================= */

.form-group {
    margin-bottom: clamp(15px, 2.5vh, 23px);
}

.form-group label {
    display: block;

    margin-bottom: 8px;

    color: #c7b394;

    font-size: 12px;
    font-weight: 700;
}

.form-group input {
    width: 100%;
    height: 49px;

    padding: 0 15px;

    border: 1px solid #493925;
    border-radius: 10px;

    outline: none;

    background: #130d07;

    color: #f0e3d0;

    font-family: inherit;
    font-size: 13px;

    transition: .25s ease;
}

.form-group input::placeholder {
    color: #77664f;
}

.form-group input:focus {
    border-color: #b98b48;

    background: #191108;

    box-shadow: 0 0 0 4px rgba(185, 139, 72, .12);
}

/* =========================================
   PASSWORD
========================================= */

.password-field {
    position: relative;
}

.password-field input {
    padding-left: 48px;
}

.password-field button {
    position: absolute;

    left: 14px;
    top: 50%;

    transform: translateY(-50%);

    border: none;
    background: transparent;

    color: #a18d73;

    cursor: pointer;

    font-size: 14px;
}

.password-field button:hover {
    color: #d0aa70;
}

/* =========================================
   FORM OPTIONS
========================================= */

.form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 10px;

    margin-top: 3px;
    margin-bottom: clamp(20px, 3vh, 28px);
}

.remember {
    display: flex;
    align-items: center;
    gap: 8px;

    color: #b2a087;

    font-size: 12px;

    cursor: pointer;
}

.remember input {
    width: 15px;
    height: 15px;

    accent-color: #b98b48;

    cursor: pointer;
}

.form-options a {
    color: #c49a5d;

    text-decoration: none;

    font-size: 12px;
    font-weight: 700;

    transition: .2s ease;
}

.form-options a:hover {
    color: #e4c58e;
}

/* =========================================
   LOGIN BUTTON
========================================= */

.login-button {
    width: 100%;
    height: 51px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 12px;

    border: 1px solid rgba(218, 177, 112, .2);
    border-radius: 10px;

    background: linear-gradient(
        135deg,
        #a77b3e,
        #68451f
    );

    color: #fff9ef;

    font-family: inherit;
    font-size: 14px;
    font-weight: 800;

    cursor: pointer;

    box-shadow: 0 8px 22px rgba(0, 0, 0, .25);

    transition: .25s ease;
}

.login-button:hover {
    transform: translateY(-2px);

    background: linear-gradient(
        135deg,
        #bd9255,
        #80572b
    );

    box-shadow: 0 12px 25px rgba(0, 0, 0, .35);
}

.login-button i {
    font-size: 13px;
}

/* =========================================
   ALERTS
========================================= */

.alert {
    padding: 10px 13px;

    margin-bottom: 16px;

    border-radius: 9px;

    font-size: 12px;
}

.alert.success {
    background: #1d2b1b;
    color: #a9c58e;
    border: 1px solid #344a2b;
}

.alert.error {
    background: #321b16;
    color: #e6a08c;
    border: 1px solid #593027;
}

/* =========================================
   FOOTER
========================================= */

.login-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 10px;

    margin-top: clamp(22px, 4vh, 40px);

    color: #88765e;

    font-size: 10px;
}

.login-footer span:first-child {
    color: #c09a65;

    font-weight: 800;
    letter-spacing: 1px;
}

/* =========================================
   FULL IMAGE INTRO SECTION
========================================= */

.intro-panel {
    position: relative;

    width: 100%;
    height: 100%;

    min-width: 0;
    min-height: 0;

    overflow: hidden;

    display: flex;
    align-items: center;
    justify-content: center;

    background: var(--intro-background);
    color: white;
}

.intro-background {
    position: absolute;
    inset: 0;

    display: block;

    width: 100%;
    height: 100%;

    max-width: none;
    max-height: none;

    object-fit: cover;
    object-position: center;

    z-index: 1;
}

/* IMAGE OVERLAY */

.video-overlay {
    position: absolute;
    inset: 0;

    z-index: 2;

    background:
        linear-gradient(
            180deg,
            rgba(23, 13, 1, .35),
            rgba(23, 13, 1, .88)
        ),
        linear-gradient(
            90deg,
            rgba(23, 13, 1, .15),
            rgba(23, 13, 1, .65)
        );
}

/* =========================================
   INTRO CONTENT
========================================= */

.intro-content {
    position: relative;
    z-index: 3;

    width: 100%;
    max-width: 560px;

    padding: 45px;

    text-align: center;
}

.intro-brand {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 13px;

    margin-bottom: clamp(35px, 7vh, 75px);

    color: var(--gold-light);

    font-size: 12px;
    font-weight: 800;

    letter-spacing: 5px;
}

.intro-brand-line {
    width: 35px;
    height: 1px;

    background: var(--gold);
    opacity: .65;
}

.intro-tag {
    display: inline-block;

    padding: 8px 18px;

    margin-bottom: 20px;

    border: 1px solid rgba(214, 173, 104, .45);
    border-radius: 50px;

    color: var(--gold-light);

    background: rgba(214, 173, 104, .08);

    font-size: 11px;
    font-weight: 700;
}

.intro-content h2 {
    margin-bottom: 18px;

    color: #fff8ec;

    font-size: clamp(30px, 4vw, 47px);
    font-weight: 800;

    line-height: 1.55;
}

.intro-content p {
    max-width: 430px;

    margin: auto;

    color: rgba(255, 248, 236, .72);

    font-size: 14px;
    line-height: 2.1;
}

.intro-bottom {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 12px;

    margin-top: clamp(40px, 8vh, 85px);

    color: rgba(241, 212, 155, .7);

    font-size: 9px;
    font-weight: 700;

    letter-spacing: 3px;
}

.intro-dot {
    width: 6px;
    height: 6px;

    border-radius: 50%;

    background: var(--gold-light);

    box-shadow: 0 0 12px var(--gold);
}

/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 900px) {
    .login-page {
        grid-template-columns: 1fr;
    }

    .intro-panel {
        display: none;
    }

    .login-card {
        padding: 25px;
    }

    .login-inner {
        max-width: 420px;
    }
}

@media (max-width: 480px) {
    .login-card {
        padding: 20px;
    }

    .brand {
        margin-bottom: 25px;
    }

    .welcome {
        margin-bottom: 22px;
    }

    .welcome h2 {
        font-size: 24px;
    }

    .form-group input {
        height: 47px;
    }

    .login-footer {
        font-size: 9px;
    }
}

/* =========================================
   FULL-SCREEN HORUS INTRO
========================================= */

.intro-loader {
    position: fixed;
    inset: 0;
    z-index: 99999;

    width: 100%;
    height: 100vh;
    height: 100dvh;

    overflow: hidden;

    background: #100a05;

    opacity: 1;
    visibility: visible;

    transition:
        opacity 1.2s cubic-bezier(.22, 1, .36, 1),
        visibility 1.2s ease;
}

.intro-loader .loader-content {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    display: block;
}

.intro-loader .loader-logo {
    position: absolute;
    inset: 0;

    display: block;

    width: 100%;
    height: 100%;

    max-width: none;
    max-height: none;

    object-fit: cover;
    object-position: center;

    opacity: 0;
    animation: horusImageFadeIn 1.2s ease-out forwards;
}

/* SUBTLE OVERLAY */

.intro-loader::after {
    content: "";

    position: absolute;
    inset: 0;

    z-index: 2;

    background: rgba(10, 7, 3, .18);
    pointer-events: none;
}

/* REMOVE SPINNER */

.intro-loader::before {
    display: none !important;
    content: none !important;
}

/* REMOVE OLD LOADING LINE */

.intro-loader .loader-line {
    display: none !important;
}

/* FADE IMAGE IN */

@keyframes horusImageFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* FADE OUT TO REVEAL LOGIN */

.intro-loader.intro-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* =========================================
   ACCESSIBILITY
========================================= */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
    }

    .intro-loader .loader-logo {
        opacity: 1;
    }
}

