﻿
/* =========================================
   HMT LOGIN PAGE — PREMIUM MODERN DESIGN
   Font: Inter
========================================= */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --primary: #5b5bd6;
    --primary-dark: #4545b8;
    --text: #171a2b;
    --muted: #777e91;
    --border: #e5e8f0;
    --surface: #ffffff;
    --background: #f5f6fb;
}

/* Base */
* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

    body.login-page {
        margin: 0;
        height: 100dvh;
        font-family: 'Inter', sans-serif;
        color: var(--text);
        background: radial-gradient(ellipse at 8% 8%, rgba(91, 91, 214, .09), transparent 35%), radial-gradient(ellipse at 95% 95%, rgba(124, 108, 235, .08), transparent 32%), var(--background);
        -webkit-font-smoothing: antialiased;
    }

/* Main layout */
.login-wrapper {
    width: min(1180px, calc(100% - 64px));
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0 auto;
    padding: 20px 0;
    display: grid;
    grid-template-columns: 1fr 0.88fr;
    align-items: center;
    gap: clamp(45px, 7vw, 100px);
}

/* Left branding section */
.login-brand {
    position: relative;
    overflow: hidden;
    padding: clamp(32px, 4vw, 58px);
    border-radius: 28px;
    color: #ffffff;
    background: linear-gradient(145deg, #202442 0%, #343565 58%, #5555ba 100%);
    box-shadow: 0 24px 65px rgba(37, 39, 90, .16);
}

    .login-brand::before {
        content: "";
        position: absolute;
        width: 310px;
        height: 310px;
        top: -135px;
        right: -110px;
        border: 1px solid rgba(255, 255, 255, .15);
        border-radius: 50%;
        box-shadow: 0 0 0 35px rgba(255, 255, 255, .035), 0 0 0 70px rgba(255, 255, 255, .025);
        pointer-events: none;
    }

    .login-brand > * {
        position: relative;
        z-index: 1;
    }

    .login-brand img {
        display: inline-block;
        width: auto;
        max-width: 150px;
        max-height: 100px;
        object-fit: contain;
        margin-bottom: 14px;
    }

.brand-label {
    display: block;
    margin-bottom: 48px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 3px;
    color: rgba(255, 255, 255, .8);
}

.login-brand h1 {
    max-width: 470px;
    margin: 0 0 18px;
    font-size: clamp(32px, 3.2vw, 46px);
    line-height: 1.18;
    font-weight: 800;
    letter-spacing: -1.8px;
}

.login-brand > p {
    max-width: 390px;
    margin: 0 0 38px;
    color: rgba(255, 255, 255, .75);
    font-size: 15px;
    line-height: 1.9;
}

.brand-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 15px;
    color: rgba(255, 255, 255, .92);
    font-size: 13px;
    font-weight: 500;
}

    .brand-feature i {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        border: 1px solid rgba(255, 255, 255, .17);
        border-radius: 11px;
        background: rgba(255, 255, 255, .09);
        font-size: 17px;
    }

/* Right content */
.login-content {
    width: 100%;
    max-width: 440px;
    justify-self: center;
}

.login-card {
    padding: clamp(20px, 3.5vw, 25px);
    background: var(--surface);
    border: 1px solid rgba(224, 227, 238, .9);
    border-radius: 23px;
    box-shadow: 0 20px 60px rgba(35, 42, 80, .075);
}

/* Login icon */
.login-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    margin-bottom: 25px;
    border-radius: 16px;
    color: var(--primary);
    background: #eeeeff;
    font-size: 20px;
}

.login-kicker {
    margin: 0 0 10px;
    color: var(--primary);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
}

.login-card h2 {
    margin: 0 0 12px;
    color: var(--text);
    font-size: clamp(24px, 2.2vw, 30px);
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -1px;
}


/* Labels */
.login-card .form-label {
    display: block;
    margin-bottom: 5px;
    color: #303448;
    font-size: 12px;
    font-weight: 600;
}

/* Input container */
.login-input {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 53px;
    padding: 0 15px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #ffffff;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

    .login-input > i {
        flex-shrink: 0;
        color: #9298aa;
        font-size: 17px;
    }

    .login-input:focus-within {
        border-color: var(--primary);
        background: #fff;
        box-shadow: 0 0 0 4px rgba(91, 91, 214, .10);
    }

    .login-input input {
        width: 100%;
        min-width: 0;
        height: 50px;
        padding: 0;
        border: none;
        outline: none;
        background: transparent;
        color: var(--text);
        font-family: inherit;
        font-size: 13px;
        font-weight: 500;
    }

        .login-input input::placeholder {
            color: #a2a7b5;
            font-weight: 400;
        }

        .login-input input:focus {
            box-shadow: none;
        }

/* Password visibility */
.password-toggle {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 36px;
    padding: 0;
    border: none;
    background: transparent;
    color: #858ba0;
    cursor: pointer;
    font-size: 17px;
    transition: color .2s ease;
}

    .password-toggle:hover {
        color: var(--primary);
    }

/* Remember and forgot password */
.login-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin: 20px 0 25px;
}

.remember-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #62697b;
    font-size: 11px;
    cursor: pointer;
}

    .remember-label input {
        width: 15px;
        height: 15px;
        margin: 0;
        accent-color: var(--primary);
        cursor: pointer;
    }

#forgotPassword {
    color: var(--primary);
    font-size: 11px;
    font-weight: 600;
    text-decoration: none;
    transition: color .2s ease;
}

    #forgotPassword:hover {
        color: var(--primary-dark);
        text-decoration: underline;
    }

/* Sign in button */
.login-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    min-height: 53px;
    padding: 13px 20px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(105deg, #5b5bd6, #4949bb);
    color: #ffffff;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .2px;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(82, 82, 199, .20);
    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

    .login-button:hover {
        color: #ffffff;
        filter: brightness(1.06);
        transform: translateY(-1px);
        box-shadow: 0 11px 24px rgba(82, 82, 199, .27);
    }

    .login-button:active {
        transform: translateY(0);
    }

    .login-button:focus-visible,
    .password-toggle:focus-visible,
    #forgotPassword:focus-visible {
        outline: 3px solid rgba(91, 91, 214, .3);
        outline-offset: 3px;
    }

/* Validation/demo message */
.demo-message {
    margin-top: 14px;
    color: #d43848;
    font-size: 12px;
    line-height: 1.6;
}

    .demo-message:empty {
        display: none;
    }

.security-message {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin: 15px 0 0;
    color: #9298a8;
    font-size: 10px;
}

    .security-message i {
        font-size: 13px;
    }

/* Footer */
.login-footer {
    padding-top: 20px;
    color: #9298a8;
    text-align: center;
    font-size: 11px;
}

/* Tablet */
@media (max-width: 950px) {
    .login-wrapper {
        width: min(680px, calc(100% - 40px));
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 35px 0;
    }

    .login-brand {
        padding: 32px;
        border-radius: 22px;
    }

    .brand-label {
        margin-bottom: 25px;
    }

    .login-brand h1 {
        max-width: 600px;
        font-size: 34px;
    }

    .login-brand > p {
        margin-bottom: 24px;
    }

    .brand-feature {
        display: inline-flex;
        margin: 6px 18px 0 0;
    }

    .login-content {
        max-width: 520px;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .login-wrapper {
        width: calc(100% - 28px);
        gap: 20px;
        padding: 18px 0 24px;
    }

    .login-brand {
        padding: 25px 22px;
        border-radius: 19px;
    }

        .login-brand img {
            max-width: 54px;
            max-height: 50px;
        }

    .brand-label {
        margin-bottom: 23px;
        font-size: 11px;
    }

    .login-brand h1 {
        font-size: 29px;
        letter-spacing: -1px;
    }

    .login-brand > p {
        margin-bottom: 20px;
        font-size: 13px;
    }

    .brand-feature {
        display: flex;
        margin: 12px 0 0;
    }

    .login-card {
        padding: 27px 21px;
        border-radius: 19px;
    }

    .login-icon {
        width: 48px;
        height: 48px;
        margin-bottom: 21px;
        font-size: 21px;
    }

    .login-card h2 {
        font-size: 25px;
    }



    .login-options {
        gap: 10px;
    }
}

/* Reduced motion accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}