:root {
    --aca-orange: #f36a10;
    --aca-orange-deep: #db5700;
    --aca-orange-soft: rgba(243, 106, 16, 0.11);
    --aca-ink: #121826;
    --aca-text: #313a49;
    --aca-border: #dce2e9;
    --aca-surface: #ffffff;
    --aca-focus: rgba(243, 106, 16, 0.14);
    --aca-shadow: 0 28px 80px rgba(17, 24, 39, 0.12);
}

* { box-sizing: border-box; }

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

body {
    min-height: 100vh;
    color: var(--aca-text);
    background:
        radial-gradient(circle at 12% 10%, rgba(243, 106, 16, 0.05), transparent 30rem),
        radial-gradient(circle at 88% 90%, rgba(18, 24, 38, 0.03), transparent 34rem),
        linear-gradient(180deg, #fafbfc 0%, #f2f4f7 100%);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

button,
input {
    font: inherit;
}

a {
    color: inherit;
}

.login-shell {
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 36px 20px;
}

.login-card {
    position: relative;
    width: min(100%, 560px);
    margin: 0 auto;
    overflow: hidden;
    border: 1px solid rgba(218, 224, 232, 0.96);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.99);
    box-shadow: var(--aca-shadow);
    animation: aca-card-in 280ms cubic-bezier(.2,.8,.2,1) both;
}

@keyframes aca-card-in {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-card__accent {
    height: 4px;
    background: linear-gradient(90deg, #ff8a1c 0%, var(--aca-orange) 50%, var(--aca-orange-deep) 100%);
}

.brand {
    padding: 20px 44px 22px;
    text-align: center;
    border-bottom: 1px solid #eef1f4;
}

.brand__logo {
    display: block;
    width: min(100%, 245px);
    height: auto;
    margin: 0 auto;
}

.login-card__content {
    padding: 34px 44px 30px;
}

.heading {
    margin-bottom: 30px;
    text-align: center;
}

.heading h1 {
    margin: 0;
    color: var(--aca-ink);
    font-size: clamp(1.85rem, 4vw, 2.15rem);
    line-height: 1.08;
    letter-spacing: -0.03em;
}

.heading p {
    max-width: 400px;
    margin: 12px auto 0;
    color: #596475;
    font-size: 0.98rem;
    line-height: 1.55;
}

.login-form {
    display: grid;
    gap: 20px;
}

.field {
    display: grid;
    gap: 9px;
}

.field label {
    color: var(--aca-ink);
    font-size: 0.94rem;
    font-weight: 750;
}

.field input {
    width: 100%;
    min-height: 58px;
    border: 1px solid var(--aca-border);
    border-radius: 16px;
    outline: none;
    background: var(--aca-surface);
    color: var(--aca-ink);
    padding: 0 17px;
    font-size: 0.98rem;
    transition:
        border-color 180ms ease,
        box-shadow 180ms ease,
        background-color 180ms ease;
}

.field input::placeholder {
    color: #9ca5b2;
}

.field input:hover {
    border-color: #bfc7d1;
}

.field input:focus {
    border-color: rgba(243, 106, 16, 0.86);
    box-shadow: 0 0 0 4px var(--aca-focus);
}

.password-field {
    position: relative;
}

.password-field input {
    padding-right: 58px;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 13px;
    width: 36px;
    height: 36px;
    transform: translateY(-50%);
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--aca-orange-deep);
    cursor: pointer;
    transition: background-color 160ms ease, transform 160ms ease;
}

.password-toggle:hover {
    background: var(--aca-orange-soft);
}

.password-toggle:active {
    transform: translateY(-50%) scale(0.96);
}

.password-toggle svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.password-toggle .eye-closed {
    display: none;
}

.password-toggle[aria-pressed="true"] .eye-open {
    display: none;
}

.password-toggle[aria-pressed="true"] .eye-closed {
    display: block;
}

.forgot-link {
    justify-self: start;
    color: var(--aca-orange-deep);
    font-size: 0.86rem;
    font-weight: 750;
    text-decoration: none;
}

.forgot-link:hover {
    text-decoration: underline;
}

.remember {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #596273;
    cursor: pointer;
    font-size: 0.9rem;
    line-height: 1.4;
}

.remember input {
    width: 18px;
    height: 18px;
    margin: 1px 0 0;
    accent-color: var(--aca-orange);
}

.login-button {
    min-height: 60px;
    border: 0;
    border-radius: 16px;
    background: linear-gradient(135deg, #ff7b14 0%, var(--aca-orange) 48%, var(--aca-orange-deep) 100%);
    box-shadow: 0 14px 30px rgba(243, 106, 16, 0.23);
    color: #fff;
    cursor: pointer;
    font-size: 0.99rem;
    font-weight: 800;
    transition:
        transform 220ms cubic-bezier(.2,.8,.2,1),
        box-shadow 220ms ease,
        filter 220ms ease;
}

.login-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 38px rgba(243, 106, 16, 0.31);
    filter: brightness(1.03) saturate(1.04);
}

.login-button:active {
    transform: translateY(0);
    box-shadow: 0 12px 24px rgba(243, 106, 16, 0.24);
}

.password-toggle:focus-visible,
.forgot-link:focus-visible,
.login-button:focus-visible {
    outline: 3px solid var(--aca-focus);
    outline-offset: 3px;
}

.security-note {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-top: 26px;
    border: 1px solid #e6eaef;
    border-radius: 14px;
    background: #fafbfc;
    padding: 13px 15px;
}

.security-note__icon {
    display: grid;
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    place-items: center;
    border-radius: 50%;
    background: var(--aca-orange-soft);
    color: var(--aca-orange-deep);
}

.security-note__icon svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.security-note p {
    margin: 0;
    color: #727b88;
    font-size: 0.81rem;
    line-height: 1.4;
}

.login-card__footer {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    border-top: 1px solid #f0f2f5;
    background: #fcfcfd;
    padding: 15px 44px 16px;
    color: #bcc1c9;
    font-size: 0.69rem;
}

@media (max-width: 620px) {
    .login-shell {
        padding: 18px;
    }

    .login-card {
        width: min(100%, 520px);
    }

    .brand,
    .login-card__content,
    .login-card__footer {
        padding-left: 28px;
        padding-right: 28px;
    }
}

@media (max-width: 520px) {
    .login-shell {
        padding: 0;
        align-items: stretch;
    }

    .login-card {
        width: 100%;
        min-height: 100vh;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .brand {
        padding-top: 22px;
    }

    .brand__logo {
        width: min(100%, 220px);
    }

    .login-card__footer {
        flex-direction: column;
        align-items: center;
        gap: 5px;
        text-align: center;
    }
}

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