:root {
    --hathor-blue: #082b46;
    --hathor-blue-deep: #061f33;
    --hathor-gold: #c99236;
    --hathor-gold-soft: #e0b868;
    --hathor-ivory: #f8f4ec;
}

.hathor-login-stage,
.hathor-login-stage * {
    box-sizing: border-box;
}

.hathor-login-stage {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    margin: 18px auto 28px;
    max-width: 430px;
    padding: 0 !important;
    position: relative;
    z-index: 100000;
}

body.hathor-login-page-active {
    background: #fff !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.hathor-login-page-active .hathor-login-stage {
    margin-top: 18px !important;
}

.hathor-login-logo {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    display: flex;
    justify-content: center;
    margin: 0 auto 18px;
    padding: 0 !important;
}

.hathor-login-logo img {
    display: block;
    height: auto;
    max-width: 310px;
    width: 100%;
}

.hathor-login-shell,
.hathor-login-shell * {
    box-sizing: border-box;
}

.hathor-login-shell {
    background: linear-gradient(145deg, var(--hathor-gold), #a86f22);
    border: 1px solid rgba(8, 43, 70, 0.22);
    border-radius: 12px;
    box-shadow: 0 16px 40px rgba(8, 43, 70, 0.24);
    color: var(--hathor-blue-deep);
    margin: 0 auto;
    max-width: 430px;
    overflow: hidden;
    padding: 22px;
}

.hathor-login-heading {
    color: var(--hathor-blue-deep);
    font-size: 21px;
    font-weight: 500;
    letter-spacing: 0.01em;
    line-height: 1.2;
    margin: 0 0 14px;
    text-align: center;
}

.hathor-login-heading-primary,
.hathor-login-heading-secondary {
    display: block;
}

.hathor-login-heading-secondary {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.055em;
    margin-top: 7px;
    text-transform: uppercase;
}

.hathor-login-intro {
    color: rgba(6, 31, 51, 0.82);
    font-size: 13px;
    line-height: 1.4;
    margin: 0 0 14px;
    text-align: center;
}

.hathor-login-shell form {
    margin: 0;
}

.hathor-login-shell .login-username,
.hathor-login-shell .login-password {
    margin: 0 0 10px;
    position: relative;
}

.hathor-login-shell .login-remember {
    align-items: center;
    display: flex;
    margin: 2px 0 10px;
}

.hathor-login-shell .login-remember label {
    align-items: center;
    color: rgba(6, 31, 51, 0.88);
    display: flex;
    font-size: 13px;
    gap: 8px;
}

.hathor-login-shell .login-remember input {
    accent-color: var(--hathor-blue);
    margin: 0;
}

.hathor-login-shell .login-username > label,
.hathor-login-shell .login-password > label {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}

.hathor-login-shell input[type="text"],
.hathor-login-shell input[type="password"] {
    appearance: none;
    background: #fff;
    border: 2px solid transparent;
    border-radius: 8px;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
    color: #252b31;
    font: inherit;
    font-size: 16px;
    line-height: 1.25;
    min-height: 44px;
    padding: 9px 12px;
    transition: border-color 0.16s ease, box-shadow 0.16s ease;
    width: 100%;
}

.hathor-login-shell input[type="text"]::placeholder,
.hathor-login-shell input[type="password"]::placeholder {
    color: #737a81;
    opacity: 1;
}

.hathor-login-shell input[type="text"]:focus,
.hathor-login-shell input[type="password"]:focus {
    border-color: rgba(8, 43, 70, 0.42);
    box-shadow: 0 0 0 4px rgba(8, 43, 70, 0.15);
    outline: none;
}

.hathor-login-shell .login-submit {
    margin: 12px 0 0;
}

.hathor-login-shell input[type="submit"],
.hathor-login-button {
    appearance: none;
    background: var(--hathor-blue);
    border: 2px solid rgba(248, 244, 236, 0.78);
    border-radius: 8px;
    color: var(--hathor-ivory);
    cursor: pointer;
    display: block;
    font: inherit;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
    min-height: 44px;
    padding: 10px 16px;
    text-align: center;
    text-decoration: none;
    transition: background 0.16s ease, color 0.16s ease, transform 0.08s ease;
    width: 100%;
}

.hathor-login-shell input[type="submit"]:hover,
.hathor-login-shell input[type="submit"]:focus,
.hathor-login-button:hover,
.hathor-login-button:focus {
    background: #fff;
    color: var(--hathor-blue);
    outline: none;
}

.hathor-login-shell input[type="submit"]:active,
.hathor-login-button:active {
    transform: translateY(1px);
}

.hathor-login-card,
.hathor-public-dashboard {
    max-width: 460px;
    margin: 40px auto;
    padding: 28px;
    border: 1px solid rgba(201, 146, 54, 0.45);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(8, 43, 70, 0.12);
    text-align: center;
}

.hathor-login-card h2,
.hathor-public-dashboard h2 {
    color: var(--hathor-blue);
    letter-spacing: 0.08em;
    margin-bottom: 8px;
}

.hathor-login-card p,
.hathor-public-dashboard p {
    color: #33475b;
}

.hathor-button {
    background: var(--hathor-blue);
    border: 1px solid var(--hathor-gold);
    border-radius: 6px;
    color: var(--hathor-ivory);
    cursor: pointer;
    display: inline-block;
    padding: 10px 18px;
    text-decoration: none;
}

@media (max-width: 600px) {
    .hathor-login-stage {
        margin: 16px auto 22px;
    }

    .hathor-login-logo {
        margin-bottom: 16px;
        padding: 0 18px;
    }

    .hathor-login-logo img {
        max-width: 270px;
    }

    .hathor-login-shell {
        border-radius: 10px;
        padding: 18px 16px;
    }

    .hathor-login-heading {
        font-size: 19px;
    }

    .hathor-login-shell input[type="text"],
    .hathor-login-shell input[type="password"],
    .hathor-login-shell input[type="submit"] {
        font-size: 16px;
        min-height: 42px;
    }
}
