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

:root {
    --navy: #10263e;
    --navy-dark: #07192d;
    --navy-soft: #173453;

    --gold: #d7ad67;
    --gold-dark: #b98538;
    --gold-light: #f4dfb7;

    --cream: #fffaf1;
    --cream-deep: #f6ead8;

    --text-dark: #10263e;
    --text-normal: #536274;
    --text-light: #8793a4;

    --border: rgba(215, 173, 103, 0.32);

    --white: #ffffff;

    --error: #c94a4a;
    --error-background: #fff1ef;

    --shadow: 0 30px 80px rgba(7, 25, 45, 0.16);
}

html,
body {
    min-height: 100%;
}

body {
    min-height: 100vh;
    overflow-x: hidden;

    background:
            radial-gradient(
                    circle at top left,
                    rgba(215, 173, 103, 0.20),
                    transparent 31%
            ),
            radial-gradient(
                    circle at bottom right,
                    rgba(16, 38, 62, 0.12),
                    transparent 35%
            ),
            var(--cream);

    color: var(--text-dark);

    font-family: Arial, Helvetica, sans-serif;
}

button,
input {
    font-family: inherit;
}

.login-page {
    display: grid;
    min-height: 100vh;
    grid-template-columns: minmax(420px, 45%) 1fr;
}

/* ==================================================
   Left Branding Side
================================================== */

.branding-section {
    position: relative;

    display: flex;
    min-height: 100vh;
    flex-direction: column;
    justify-content: space-between;

    overflow: hidden;

    padding: 44px 56px 38px;

    background:
            radial-gradient(
                    circle at 16% 78%,
                    rgba(215, 173, 103, 0.24),
                    transparent 36%
            ),
            radial-gradient(
                    circle at 88% 12%,
                    rgba(255, 255, 255, 0.08),
                    transparent 28%
            ),
            linear-gradient(
                    145deg,
                    var(--navy-dark) 0%,
                    var(--navy) 52%,
                    var(--navy-soft) 100%
            );

    color: var(--white);
}

.branding-section::before {
    position: absolute;
    top: -110px;
    right: -110px;

    width: 330px;
    height: 330px;

    border: 1px solid rgba(215, 173, 103, 0.20);
    border-radius: 50%;

    content: "";
}

.branding-section::after {
    position: absolute;
    right: 70px;
    bottom: -140px;

    width: 360px;
    height: 360px;

    border: 1px solid rgba(215, 173, 103, 0.16);
    border-radius: 50%;

    content: "";
}

.brand-logo-wrap {
    position: relative;
    z-index: 2;

    display: flex;
    width: 210px;
    height: 210px;
    align-items: center;
    justify-content: center;

    padding: 10px;

    border: 1px solid rgba(215, 173, 103, 0.28);
    border-radius: 50%;

    background: white;

    box-shadow:
            0 24px 50px rgba(0, 0, 0, 0.22);
}

.brand-logo-wrap img {
    display: block;
    width: 100%;
    height: 100%;

    border-radius: 50%;

    object-fit: contain;
    object-position: center;
}

.branding-content {
    position: relative;
    z-index: 2;

    display: flex;
    max-width: 540px;
    flex: 1;
    flex-direction: column;
    justify-content: center;

    padding: 58px 0;
}

.welcome-label {
    margin-bottom: 12px;

    color: var(--gold-light);

    font-size: 16px;
    font-weight: 850;
    letter-spacing: 1px;
}

.branding-content h1 {
    max-width: 510px;

    color: white;

    font-size: clamp(46px, 4vw, 66px);
    line-height: 1.02;
    letter-spacing: -2.2px;
}

.branding-content h1 span {
    display: block;

    color: var(--gold);
}

.welcome-description {
    max-width: 505px;

    margin-top: 25px;

    color: rgba(255, 255, 255, 0.78);

    font-size: 17px;
    line-height: 1.85;
}

.branding-footer {
    position: relative;
    z-index: 2;

    color: rgba(244, 223, 183, 0.78);

    font-size: 13px;
    font-weight: 750;
}

/* ==================================================
   Right Login Side
================================================== */

.form-section {
    display: flex;
    min-height: 100vh;
    align-items: center;
    justify-content: center;

    padding: 48px;

    background:
            radial-gradient(
                    circle at 72% 7%,
                    rgba(215, 173, 103, 0.16),
                    transparent 31%
            ),
            rgba(255, 250, 241, 0.84);
}

.login-container {
    display: flex;
    width: 100%;
    max-width: 520px;
    align-items: center;
    justify-content: center;
}

.form-card {
    width: 100%;

    padding: 42px;

    border: 1px solid var(--border);
    border-radius: 30px;

    background:
            linear-gradient(
                    180deg,
                    rgba(255, 255, 255, 0.96),
                    rgba(255, 250, 241, 0.96)
            );

    box-shadow: var(--shadow);
}

.mobile-brand {
    display: none;
}

.form-heading {
    margin-bottom: 32px;
}

.heading-label {
    margin-bottom: 8px;

    color: var(--gold-dark);

    font-size: 13px;
    font-weight: 950;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}

.form-heading h2 {
    margin-bottom: 11px;

    color: var(--navy);

    font-size: clamp(31px, 3vw, 42px);
    line-height: 1.15;
    letter-spacing: -1.2px;
}

.form-heading > p:last-child {
    color: var(--text-normal);

    font-size: 15px;
    line-height: 1.6;
}

/* ==================================================
   Error
================================================== */

.error-message {
    display: flex;
    min-height: 54px;
    align-items: center;
    gap: 12px;

    margin-bottom: 22px;
    padding: 12px 15px;

    border: 1px solid rgba(201, 74, 74, 0.24);
    border-radius: 14px;

    background: var(--error-background);
    color: #a83636;

    font-size: 14px;
    font-weight: 750;
}

.error-message.hidden {
    display: none;
}

.error-icon {
    display: flex;
    width: 27px;
    height: 27px;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: var(--error);
    color: white;

    font-size: 14px;
    font-weight: 900;
}

/* ==================================================
   Form
================================================== */

.form-group {
    margin-bottom: 22px;
}

.form-group label {
    display: block;

    margin-bottom: 9px;

    color: var(--navy);

    font-size: 14px;
    font-weight: 900;
}

.input-wrapper {
    position: relative;

    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 16px;

    display: flex;
    width: 29px;
    height: 29px;
    align-items: center;
    justify-content: center;

    border-radius: 9px;

    background: rgba(215, 173, 103, 0.18);
    color: var(--gold-dark);

    font-size: 12px;
    font-weight: 950;

    pointer-events: none;
}

.password-icon {
    font-size: 9px;
}

.input-wrapper input {
    width: 100%;
    height: 58px;

    padding: 0 52px;

    border: 1px solid rgba(16, 38, 62, 0.12);
    border-radius: 15px;

    outline: none;

    background: white;
    color: var(--navy);

    font-size: 15px;
    font-weight: 750;

    transition:
            border-color 0.2s ease,
            box-shadow 0.2s ease,
            background 0.2s ease;
}

.input-wrapper input::placeholder {
    color: #9ba5b8;
}

.input-wrapper input:hover {
    border-color: rgba(215, 173, 103, 0.54);
}

.input-wrapper input:focus {
    border-color: var(--gold);

    background: #fffdf8;

    box-shadow:
            0 0 0 4px rgba(215, 173, 103, 0.14);
}

.password-wrapper input {
    padding-right: 78px;
}

.show-password-button {
    position: absolute;
    right: 13px;

    padding: 7px 8px;

    border: 0;
    outline: none;

    background: transparent;
    color: var(--gold-dark);

    cursor: pointer;

    font-size: 13px;
    font-weight: 900;
}

.show-password-button:hover {
    color: var(--navy);
}

.login-button {
    display: flex;
    width: 100%;
    height: 58px;
    align-items: center;
    justify-content: center;
    gap: 14px;

    margin-top: 8px;

    border: 0;
    border-radius: 15px;

    background:
            linear-gradient(
                    135deg,
                    var(--navy),
                    var(--navy-soft)
            );

    box-shadow:
            0 16px 34px rgba(16, 38, 62, 0.24);

    color: white;

    cursor: pointer;

    font-size: 16px;
    font-weight: 900;

    transition:
            transform 0.2s ease,
            box-shadow 0.2s ease,
            background 0.2s ease;
}

.login-button:hover {
    background:
            linear-gradient(
                    135deg,
                    var(--navy-dark),
                    var(--navy)
            );

    transform: translateY(-2px);

    box-shadow:
            0 20px 40px rgba(16, 38, 62, 0.31);
}

.login-button:active {
    transform: translateY(0);
}

.button-arrow {
    color: var(--gold-light);

    font-size: 20px;
}

.form-footer {
    margin-top: 28px;

    color: var(--text-light);

    font-size: 12px;
    font-weight: 750;
    line-height: 1.5;
    text-align: center;
}

/* ==================================================
   Responsive
================================================== */

@media (max-width: 1000px) {
    .login-page {
        grid-template-columns: 40% 1fr;
    }

    .branding-section {
        padding: 34px;
    }

    .brand-logo-wrap {
        width: 170px;
        height: 170px;
    }

    .form-section {
        padding: 38px;
    }

    .form-card {
        padding: 34px;
    }
}

@media (max-width: 780px) {
    .login-page {
        display: block;
    }

    .branding-section {
        display: none;
    }

    .form-section {
        min-height: 100vh;
        padding: 34px 20px;
    }

    .login-container {
        display: block;
        max-width: 520px;
        margin: 0 auto;
    }

    .mobile-brand {
        display: flex;
        align-items: center;
        gap: 13px;

        margin-bottom: 26px;
    }

    .mobile-brand img {
        width: 70px;
        height: 70px;

        border-radius: 50%;

        object-fit: contain;

        background: white;
        padding: 4px;

        box-shadow:
                0 12px 28px rgba(7, 25, 45, 0.14);
    }

    .mobile-brand span,
    .mobile-brand strong {
        display: block;
    }

    .mobile-brand span {
        color: var(--gold-dark);

        font-size: 11px;
        font-weight: 900;
        letter-spacing: 5px;
    }

    .mobile-brand strong {
        margin-top: 4px;

        color: var(--navy);

        font-size: 23px;
        letter-spacing: 0.5px;
    }
}

@media (max-width: 480px) {
    .form-section {
        align-items: flex-start;
        padding: 24px 15px;
    }

    .form-card {
        padding: 25px;
        border-radius: 24px;
    }

    .form-heading h2 {
        font-size: 30px;
    }
}