

:root {
    --primary: #024541;
    --primary-hover: #013A36;
    --peacock-dark: #012A27;
    --peacock: #024541;
    --peacock-light: #035A55;
    --emerald: #024541;
    --gold: #9A6B00;
    --gold-light: #FFF8E7;
    --text-dark: #243330;
    --text-muted: #687873;
    --border: #D6E4E1;
    --white: #ffffff;
}

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

html {
    min-height: 100%;
}

body {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 24px;
    font-family: "Segoe UI", Arial, sans-serif;
    color: var(--text-dark);
    background:
        radial-gradient(
            circle at 15% 15%,
            rgba(2, 69, 65, 0.25),
            transparent 35%
        ),
        radial-gradient(
            circle at 90% 85%,
            rgba(2, 69, 65, 0.17),
            transparent 30%
        ),
        linear-gradient(
            135deg,
            #01201E 0%,
            #024541 50%,
            #013A36 100%
        );
    position: relative;
    overflow-x: hidden;
}

/* Subtle decorative background */

body::before,
body::after {
    content: "";
    position: fixed;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 50%;
    pointer-events: none;
}

body::before {
    width: 420px;
    height: 420px;
    top: -170px;
    right: -100px;
}

body::after {
    width: 320px;
    height: 320px;
    bottom: -150px;
    left: -100px;
}

/* Main Container */

.login-container {
    width: 100%;
    max-width: 440px;
    padding: 10px;
    position: relative;
    z-index: 1;
}

.company-logo {
    width: 270px;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto 16px;
}

/* Login Card */

.login-card {
    position: relative;
    background: rgba(255, 255, 255, 0.98);
    padding: 42px 38px 36px;
    border: 1px solid rgba(255, 255, 255, 0.75);
    border-radius: 22px;
    box-shadow:
        0 28px 70px rgba(0, 20, 19, 0.30),
        0 8px 20px rgba(0, 20, 19, 0.10);
    overflow: hidden;
}

/* Premium gold top accent */

.login-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(
        90deg,
        var(--gold),
        var(--gold-light),
        var(--peacock-light),
        var(--gold)
    );
}

/* Brand Header */

.logo {
    text-align: center;
    margin-bottom: 32px;
}

.logo::before {
    display: none;
}

.logo h1 {
    color: var(--peacock-dark);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(23px, 5vw, 28px);
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.5px;
    margin-bottom: 10px;
}

.logo p {
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

/* Form Groups */

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

label {
    display: block;
    margin-bottom: 9px;
    color: #244c47;
    font-size: 14px;
    font-weight: 650;
}

/* Input Fields */

input {
    display: block;
    width: 100%;
    min-height: 49px;
    padding: 13px 15px;
    color: var(--text-dark);
    background: #f9fcfb;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-family: inherit;
    font-size: 15px;
    outline: none;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

input::placeholder {
    color: #9aa9a6;
    font-size: 14px;
}

input:hover {
    border-color: #a9c9c3;
}

input:focus {
    background: var(--white);
    border-color: var(--peacock-light);
    box-shadow: 0 0 0 4px rgba(11, 139, 126, 0.12);
}

/* Form Footer Link */
.form-footer-link {
    display: flex;
    justify-content: flex-end;
    margin-top: -8px;
    margin-bottom: 20px;
}

.form-footer-link a {
    color: var(--peacock-light);
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease, text-decoration 0.2s ease;
}

.form-footer-link a:hover {
    color: var(--peacock-dark);
    text-decoration: underline;
}

.back-link {
    display: block;
    text-align: center;
    margin-top: 18px;
    color: var(--text-muted);
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.back-link:hover {
    color: var(--peacock-dark);
    text-decoration: underline;
}

.password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

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

.toggle-pwd {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: unset;
    width: auto;
    margin-top: 0;
    box-shadow: none;
}

.toggle-pwd:hover {
    color: var(--peacock-dark);
    background: none;
    transform: translateY(-50%);
    box-shadow: none;
}

.info-note {
    background: #f0f7f5;
    border: 1px solid #d4e7e2;
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 13px;
    color: #244c47;
    margin-bottom: 20px;
    line-height: 1.5;
}

.password-policy {
    background: #fafcfb;
    border: 1px solid #e1ebe8;
    border-radius: 9px;
    padding: 11px 14px;
    margin-bottom: 20px;
    font-size: 12px;
    color: #556b66;
    line-height: 1.6;
}

/* Login Button */

button {
    display: block;
    width: 100%;
    min-height: 51px;
    margin-top: 8px;
    padding: 14px 18px;
    color: var(--white);
    background: linear-gradient(
        110deg,
        var(--peacock-dark),
        var(--peacock),
        var(--peacock-light)
    );
    border: 1px solid transparent;
    border-radius: 10px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;
    box-shadow: 0 7px 17px rgba(0, 92, 82, 0.22);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        filter 0.2s ease;
}

button:hover {
    filter: brightness(1.08);
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(0, 92, 82, 0.28);
}

button:active {
    transform: translateY(0);
}

button:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 4px;
}

/* Login Messages */

.message {
    margin-bottom: 22px;
    padding: 13px 15px;
    border-radius: 9px;
    font-size: 13px;
    line-height: 1.5;
}

.error {
    color: #a32030;
    background: #fff0f1;
    border: 1px solid #f5c9cf;
}

.success {
    color: #126847;
    background: #edfaf2;
    border: 1px solid #c5ebd3;
}

/* Tablet */

@media (max-width: 600px) {
    body {
        padding: 18px;
    }

    .login-container {
        max-width: 420px;
        padding: 5px;
    }

    .login-card {
        padding: 36px 28px 30px;
        border-radius: 19px;
    }

    .logo {
        margin-bottom: 28px;
    }
}

/* Mobile */

@media (max-width: 380px) {
    body {
        padding: 12px;
    }

    .login-card {
        padding: 32px 20px 25px;
        border-radius: 16px;
    }

    .logo::before {
        width: 58px;
        height: 58px;
        font-size: 22px;
        margin-bottom: 16px;
    }

    .logo h1 {
        font-size: 23px;
    }

    .logo p {
        font-size: 11px;
        letter-spacing: 1px;
    }

    input {
        min-height: 46px;
        font-size: 14px;
    }

    button {
        min-height: 48px;
    }
}

@media (max-width: 768px) {
    .company-logo {
        width: 230px;
        max-width: 85%;
    }
}

/* Accessibility */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        transition: none !important;
        scroll-behavior: auto !important;
    }
}

