/* =========================================================
   HYDRO INFORMATION SYSTEM LOGIN PAGE
   ========================================================= */

* {
    box-sizing: border-box;
    font-family: "Segoe UI", Arial, sans-serif;
}

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

body {
    min-height: 100vh;
    overflow-x: hidden;
    background: #00372e;
}

/* =========================================================
   LOGIN PAGE BACKGROUND
   Image location:
   Public/assets/img/login/login-bg.webp
   ========================================================= */

.login-page {
    min-height: 100vh;

    display: flex;
    align-items: center;
    justify-content: flex-start;

    padding: 40px clamp(24px, 7vw, 120px);

    background:
        linear-gradient(
            90deg,
            rgba(0, 55, 46, 0.94) 0%,
            rgba(0, 55, 46, 0.78) 34%,
            rgba(0, 55, 46, 0.40) 62%,
            rgba(0, 55, 46, 0.10) 100%
        ),
        url("../img/login/login-bg.webp")
        center center / cover
        no-repeat;

    background-color: #00372e;
}

/* =========================================================
   LOGIN CARD
   ========================================================= */

.login-card {
    width: min(430px, calc(100vw - 32px));

    margin: 0;
    padding: 34px 32px;

    border: 1px solid rgba(244, 182, 60, 0.40);
    border-radius: 22px;

    background: rgba(0, 54, 45, 0.92);
    color: #ffffff;

    box-shadow:
        0 24px 65px rgba(0, 0, 0, 0.48),
        0 0 35px rgba(244, 182, 60, 0.08);

    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

/* =========================================================
   LOGO
   ========================================================= */

.logo-circle {
    width: 62px;
    height: 62px;

    display: grid;
    place-items: center;

    margin: 0 0 17px 0;

    border-radius: 50%;
    border: 2px solid rgba(43, 212, 227, 0.85);

    background: rgba(5, 29, 52, 0.72);

    box-shadow:
        0 0 0 4px rgba(43, 212, 227, 0.12),
        0 0 28px rgba(43, 212, 227, 0.45);

    overflow: hidden;
}

.logo-circle img {
    width: 70%;
    height: 70%;

    display: block;
    object-fit: contain;
}

/* =========================================================
   HEADINGS
   ========================================================= */

.login-card h1 {
    margin: 0;

    color: #ffffff;

    font-size: 27px;
    line-height: 1.15;
    text-align: left;
}

.subtitle {
    margin: 9px 0 24px;

    color: #f3e7c5;

    font-size: 14px;
    line-height: 1.5;
    text-align: left;
}

/* =========================================================
   FORM
   ========================================================= */

.login-card form {
    width: 100%;
}

.login-card label {
    display: block;

    margin: 14px 0 6px;

    color: #d8edf3;

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

.login-card input {
    width: 100%;
    height: 45px;

    padding: 0 14px;

    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 11px;

    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;

    font-size: 15px;
    outline: none;

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

.login-card input::placeholder {
    color: rgba(255, 255, 255, 0.55);
}

.login-card input:hover {
    background: rgba(255, 255, 255, 0.15);
}

.login-card input:focus {
    border-color: #f4b63c;

    background: rgba(255, 255, 255, 0.17);

    box-shadow:
        0 0 0 3px rgba(244, 182, 60, 0.16);
}

/* =========================================================
   LOGIN BUTTON
   ========================================================= */

.login-card button[type="submit"] {
    width: 100%;
    height: 47px;

    margin-top: 20px;

    border: 0;
    border-radius: 12px;

    background:
        linear-gradient(
            135deg,
            #f4b63c,
            #c58a1e
        );

    color: #00483d;

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

    cursor: pointer;

    box-shadow:
        0 12px 28px rgba(244, 182, 60, 0.20);

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

.login-card button[type="submit"]:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);

    box-shadow:
        0 16px 34px rgba(244, 182, 60, 0.28);
}

.login-card button[type="submit"]:active {
    transform: translateY(0);
}

.login-card button[type="submit"]:focus-visible {
    outline: 3px solid rgba(244, 182, 60, 0.32);
    outline-offset: 3px;
}

/* =========================================================
   ERROR MESSAGE
   ========================================================= */

.error {
    margin: 14px 0 4px;
    padding: 11px 12px;

    border: 1px solid rgba(255, 160, 160, 0.35);
    border-radius: 11px;

    background: rgba(239, 68, 68, 0.20);
    color: #ffd7d7;

    font-size: 13px;
    line-height: 1.45;
}

/* =========================================================
   LINKS
   ========================================================= */

.links {
    margin-top: 18px;

    color: #c8dce4;

    font-size: 14px;
    text-align: center;
}

.links a {
    color: #e6c66b;

    font-weight: 900;
    text-decoration: none;
}

.guest {
    margin-top: 10px;
    text-align: center;
}

.guest a {
    color: #f3e7c5;

    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.links a:hover,
.guest a:hover {
    text-decoration: underline;
}

.links a:focus-visible,
.guest a:focus-visible {
    outline: 2px solid #f4b63c;
    outline-offset: 3px;
    border-radius: 3px;
}

/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {
    .login-page {
        padding-left: 40px;
        padding-right: 40px;

        background-position: 58% center;
    }
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 680px) {
    .login-page {
        justify-content: center;

        padding: 22px 16px;

        background:
            linear-gradient(
                180deg,
                rgba(0, 55, 46, 0.82) 0%,
                rgba(0, 55, 46, 0.70) 100%
            ),
            url("../img/login/login-bg.webp")
            center center / cover
            no-repeat;
    }

    .login-card {
        width: 100%;
        max-width: 430px;

        padding: 30px 24px;
    }

    .logo-circle {
        margin-left: auto;
        margin-right: auto;
    }

    .login-card h1,
    .subtitle {
        text-align: center;
    }
}

/* =========================================================
   SMALL MOBILE
   ========================================================= */

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

    .login-card {
        padding: 26px 20px;
        border-radius: 18px;
    }

    .login-card h1 {
        font-size: 23px;
    }

    .subtitle {
        margin-bottom: 20px;
        font-size: 13px;
    }

    .login-card input {
        height: 44px;
    }

    .login-card button[type="submit"] {
        height: 46px;
    }
}

/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
    .login-card input,
    .login-card button[type="submit"] {
        transition: none;
    }
}