﻿:root {
    --navy-dark: #061a33;
    --navy: #0b2d55;
    --navy-light: #174c7e;
    --gold: #d7a528;
    --gold-light: #f2c756;
    --white: #ffffff;
    --off-white: #f7f8fa;
    --text-dark: #10233c;
    --text-muted: #718096;
    --danger: #dc3545;
    --success: #198754;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    width: 100%;
    min-height: 100%;
    font-family: Arial, Helvetica, sans-serif;
}

body {
    min-height: 100vh;
    margin: 0;
    padding: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: Arial, Helvetica, sans-serif;
    background: radial-gradient( circle at top left, rgba(215, 165, 40, 0.13), transparent 35% ), linear-gradient( 135deg, #061a33, #0b2d55 );
}

.login-container {
    width: min(1180px, 100%);
    height: min(640px, calc(100vh - 50px));
    min-height: 570px;
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(370px, 1fr);
    overflow: hidden;
    background: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.75);
    border-radius: 24px;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.35);
}

/* Banner side */
.banner-panel {
    position: relative;
    min-width: 0;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #f4f5f7;
}

.banner-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    background: #f4f5f7;
}

/* Login side */
.login-panel {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 42px 44px;
    background: radial-gradient( circle at top right, rgba(215, 165, 40, 0.12), transparent 30% ), #f8f9fb;
}

.login-card {
    width: 100%;
    max-width: 360px;
}

.logo {
    width: 78px;
    height: 78px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    border: 3px solid var(--gold);
    border-radius: 50%;
    background: url("assets/images/gemini_generated_image_392d3j392d3j392d.png") center / cover no-repeat;
    box-shadow: 0 12px 28px rgba(11, 45, 85, 0.18), 0 0 0 7px rgba(215, 165, 40, 0.10);
}

.login-heading {
    margin: 0;
    color: var(--navy-dark);
    font-size: 27px;
    line-height: 1.2;
    text-align: center;
}

    .login-heading span {
        color: var(--gold);
    }

.subtitle {
    margin: 9px 0 30px;
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.5;
    text-align: center;
}

.form-group {
    margin-bottom: 18px;
}

.form-label {
    display: block;
    margin-bottom: 7px;
    color: var(--text-dark);
    font-size: 13px;
    font-weight: 700;
}

.input-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    top: 50%;
    left: 15px;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: var(--navy-light);
    pointer-events: none;
}

input {
    width: 100%;
    height: 50px;
    padding: 0 44px 0 44px;
    border: 1px solid #dce2e9;
    border-radius: 11px;
    background: var(--white);
    color: var(--text-dark);
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

    input::placeholder {
        color: #a0a9b5;
    }

    input:focus {
        border-color: var(--gold);
        box-shadow: 0 0 0 4px rgba(215, 165, 40, 0.13), 0 8px 20px rgba(11, 45, 85, 0.06);
    }

.toggle-password {
    position: absolute;
    top: 50%;
    right: 14px;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
}

    .toggle-password:hover {
        background: rgba(11, 45, 85, 0.07);
        color: var(--navy);
        transform: translateY(-50%);
        box-shadow: none;
    }

.login-button {
    width: 100%;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin-top: 6px;
    padding: 13px 18px;
    border: none;
    border-radius: 11px;
    background: linear-gradient( 135deg, var(--navy), var(--navy-dark) );
    color: var(--white);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.3px;
    cursor: pointer;
    box-shadow: 0 10px 22px rgba(6, 26, 51, 0.22);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

    .login-button:hover {
        transform: translateY(-2px);
        background: linear-gradient( 135deg, var(--navy-light), var(--navy) );
        box-shadow: 0 14px 28px rgba(6, 26, 51, 0.28);
    }

    .login-button:active {
        transform: translateY(0);
    }

    .login-button:disabled {
        opacity: 0.7;
        cursor: not-allowed;
        transform: none;
    }

.button-icon {
    width: 17px;
    height: 17px;
}

#msg {
    min-height: 19px;
    margin-top: 14px;
    font-size: 13px;
    line-height: 1.45;
    text-align: center;
}

    #msg.success {
        color: var(--success);
    }

    #msg.error {
        color: var(--danger);
    }

.footer-text {
    margin-top: 28px;
    color: #8993a0;
    font-size: 11px;
    line-height: 1.6;
    text-align: center;
}

.gold-line {
    width: 48px;
    height: 3px;
    margin: 18px auto;
    border-radius: 100px;
    background: linear-gradient( 90deg, var(--gold), var(--gold-light) );
}

/* =========================
           TABLET
        ========================== */

/* Smaller desktop and tablet */
@media (max-width: 1000px) {
    body {
        padding: 18px;
        align-items: flex-start;
    }

    .login-container {
        width: min(680px, 100%);
        height: auto;
        min-height: auto;
        grid-template-columns: 1fr;
    }

    .banner-panel {
        height: 310px;
        min-height: 310px;
    }

    .banner-image {
        object-fit: cover;
        object-position: center;
    }

    .login-panel {
        padding: 42px 34px;
    }
}

/* Mobile */
@media (max-width: 576px) {
    body {
        min-height: 100svh;
        padding: 0;
        align-items: stretch;
        background: #f8f9fb;
    }

    .login-container {
        width: 100%;
        min-height: 100svh;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .banner-panel {
        height: 190px;
        min-height: 190px;
    }

    .banner-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }

    .login-panel {
        min-height: calc(100svh - 190px);
        align-items: flex-start;
        padding: 30px 22px 25px;
    }

    .login-card {
        max-width: none;
    }

    .logo {
        width: 66px;
        height: 66px;
        margin-bottom: 14px;
    }

    .login-heading {
        font-size: 23px;
    }

    .subtitle {
        margin-bottom: 24px;
    }

    input {
        height: 49px;
        font-size: 16px;
    }

    .login-button {
        min-height: 49px;
    }

    .footer-text {
        margin-top: 24px;
    }
}

/* Very small phones */
@media (max-width: 360px) {
    .banner-panel {
        height: 165px;
        min-height: 165px;
    }

    .login-panel {
        min-height: calc(100svh - 165px);
        padding: 25px 17px 22px;
    }
}
