@import url("../../elastic/styles/styles.min.css");

:root {
    --amatiran-navy: #2a2c39;
    --amatiran-navy-soft: #404356;
    --amatiran-orange: #ef6603;
    --amatiran-teal: #1ca48f;
    --amatiran-text: #444444;
    --amatiran-muted: #737783;
    --amatiran-line: #e5e6eb;
    --amatiran-page: #f5f6f8;
    --amatiran-white: #ffffff;
}

body.task-login {
    min-height: 100vh;
    min-height: 100dvh;
    overflow: auto !important;
    color: var(--amatiran-text);
    background: var(--amatiran-page);
    font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body.task-login::before,
body.task-login::after {
    position: fixed;
    z-index: 0;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    content: "";
    pointer-events: none;
}

body.task-login::before {
    top: -120px;
    right: -90px;
    background: rgba(28, 164, 143, 0.08);
}

body.task-login::after {
    bottom: -150px;
    left: -100px;
    background: rgba(239, 102, 3, 0.07);
}

.task-login #layout {
    position: relative;
    z-index: 1;
    display: flex !important;
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    padding: 24px;
    overflow: visible;
    background: transparent;
}

.task-login #layout-content {
    position: relative;
    inset: auto;
    display: grid !important;
    grid-template-columns: minmax(340px, 0.92fr) minmax(440px, 1.08fr);
    width: min(1120px, 100%);
    min-height: min(720px, calc(100vh - 48px));
    min-height: min(720px, calc(100dvh - 48px));
    margin: auto;
    overflow: hidden;
    text-align: left;
    background: var(--amatiran-white);
    border: 1px solid rgba(42, 44, 57, 0.08);
    border-radius: 28px;
    box-shadow: 0 24px 70px rgba(42, 44, 57, 0.14);
}

.amatiran-brand-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 44px 46px 36px;
    overflow: hidden;
    color: var(--amatiran-white);
    background: var(--amatiran-navy);
    isolation: isolate;
}

.amatiran-brand-panel::before {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    content: "";
    background: var(--amatiran-orange);
}

.amatiran-brand-panel::after {
    position: absolute;
    right: -90px;
    bottom: 88px;
    z-index: -1;
    width: 230px;
    height: 230px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    content: "";
}

.amatiran-brand-top,
.amatiran-brand-footer {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

#amatiran-logo {
    display: block;
    width: 184px;
    height: auto;
    max-height: none;
}

.amatiran-secure-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    white-space: nowrap;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
}

.amatiran-secure-badge span,
.amatiran-benefits span,
.amatiran-privacy-note span {
    display: inline-block;
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    border-radius: 50%;
    background: var(--amatiran-teal);
    box-shadow: 0 0 0 4px rgba(28, 164, 143, 0.14);
}

.amatiran-brand-copy {
    position: relative;
    z-index: 2;
    max-width: 420px;
    margin: auto 0;
    padding: 64px 0 48px;
}

.amatiran-eyebrow,
.amatiran-login-kicker {
    margin: 0 0 14px;
    color: var(--amatiran-orange);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.amatiran-brand-copy h2 {
    max-width: 390px;
    margin: 0;
    color: var(--amatiran-white);
    font-size: clamp(2rem, 3.2vw, 3rem);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.035em;
}

.amatiran-brand-description {
    max-width: 390px;
    margin: 22px 0 0;
    color: rgba(255, 255, 255, 0.68);
    font-size: 1rem;
    line-height: 1.75;
}

.amatiran-benefits {
    display: grid;
    gap: 12px;
    margin: 28px 0 0;
    padding: 0;
    list-style: none;
}

.amatiran-benefits li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.9rem;
    font-weight: 500;
}

.amatiran-brand-footer {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.76rem;
}

.amatiran-brand-footer a {
    color: rgba(255, 255, 255, 0.74);
    text-decoration: none;
}

.amatiran-brand-footer a:hover,
.amatiran-brand-footer a:focus-visible {
    color: var(--amatiran-white);
}

.amatiran-brand-mark {
    position: absolute;
    right: -42px;
    bottom: -58px;
    z-index: 0;
    width: 300px;
    height: auto;
    opacity: 0.055;
    filter: invert(1);
    transform: rotate(-8deg);
    pointer-events: none;
}

.amatiran-login-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 0;
    padding: 56px clamp(42px, 6vw, 84px) 34px;
    background: var(--amatiran-white);
}

.amatiran-login-card {
    width: 100%;
    max-width: 420px;
    margin: auto 0;
}

.amatiran-login-card h2 {
    margin: 0;
    color: var(--amatiran-navy);
    font-size: clamp(2rem, 3.1vw, 2.65rem);
    font-weight: 700;
    line-height: 1.16;
    letter-spacing: -0.035em;
}

.amatiran-login-intro {
    margin: 14px 0 30px;
    color: var(--amatiran-muted);
    font-size: 0.96rem;
    line-height: 1.65;
}

.task-login #login-form {
    position: static;
    top: auto;
    width: 100%;
    max-width: none;
    margin: 0;
}

.task-login #login-form table,
.task-login #login-form tbody,
.task-login #login-form tr,
.task-login #login-form td {
    display: block;
    width: 100%;
}

.task-login #login-form tr {
    margin: 0 0 18px;
}

.task-login #login-form td.title {
    padding: 0 0 8px;
}

.task-login #login-form td.input {
    padding: 0;
}

.task-login #login-form label {
    margin: 0;
    color: var(--amatiran-navy);
    font-size: 0.84rem;
    font-weight: 650;
}

.task-login #login-form .form-control {
    width: 100%;
    height: 54px;
    padding: 0 16px;
    color: var(--amatiran-navy);
    font-size: 0.98rem;
    border: 1px solid var(--amatiran-line);
    border-radius: 14px;
    background: #fbfbfc;
    box-shadow: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.task-login #login-form .form-control:hover {
    border-color: #cfd1d9;
}

.task-login #login-form .form-control:focus {
    border-color: var(--amatiran-teal);
    outline: 0;
    background: var(--amatiran-white);
    box-shadow: 0 0 0 4px rgba(28, 164, 143, 0.12);
}

.task-login #login-form .formbuttons {
    margin: 26px 0 0;
}

.task-login #rcmloginsubmit {
    width: 100%;
    min-height: 54px;
    padding: 0 24px;
    color: var(--amatiran-white);
    font-size: 0.94rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    border: 0;
    border-radius: 999px;
    background: var(--amatiran-orange);
    box-shadow: 0 10px 24px rgba(239, 102, 3, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.task-login #rcmloginsubmit:hover,
.task-login #rcmloginsubmit:focus-visible {
    background: #d95b00;
    box-shadow: 0 14px 28px rgba(239, 102, 3, 0.26);
    transform: translateY(-1px);
}

.task-login #rcmloginsubmit:focus-visible,
.task-login a:focus-visible {
    outline: 3px solid rgba(28, 164, 143, 0.32);
    outline-offset: 3px;
}

.amatiran-privacy-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 20px 0 0;
    color: var(--amatiran-muted);
    font-size: 0.78rem;
    line-height: 1.4;
    text-align: center;
}

.amatiran-privacy-note span {
    width: 6px;
    height: 6px;
    flex-basis: 6px;
    box-shadow: none;
}

.task-login #login-footer {
    margin-top: 22px;
    color: #9a9ca5;
    font-size: 0.76rem;
    text-align: center;
}

.amatiran-login-help {
    width: 100%;
    max-width: 420px;
    margin: 24px 0 0;
    color: #a0a2aa;
    font-size: 0.74rem;
    line-height: 1.5;
    text-align: center;
}

.task-login .noscriptwarning {
    position: fixed;
    right: 24px;
    bottom: 24px;
    left: 24px;
    z-index: 10;
    max-width: 720px;
    margin: auto;
    padding: 14px 18px;
    color: #781b22;
    font-size: 0.85rem;
    border: 1px solid #f2c5c9;
    border-radius: 12px;
    background: #fff4f5;
}

.dark-mode body.task-login,
html.dark-mode body.task-login {
    background: #20222c;
}

.dark-mode .task-login #layout-content,
.dark-mode .amatiran-login-panel,
html.dark-mode .task-login #layout-content,
html.dark-mode .amatiran-login-panel {
    background: #f8f8fa;
}

@media (max-width: 880px) {
    .task-login #layout {
        padding: 18px;
    }

    .task-login #layout-content {
        grid-template-columns: 1fr;
        min-height: auto;
        border-radius: 24px;
    }

    .amatiran-brand-panel {
        min-height: auto;
        padding: 30px 34px 28px;
    }

    .amatiran-brand-copy {
        margin: 36px 0 10px;
        padding: 0;
    }

    .amatiran-brand-copy h2 {
        max-width: 600px;
        font-size: clamp(1.75rem, 6vw, 2.35rem);
    }

    .amatiran-brand-description {
        max-width: 620px;
        margin-top: 14px;
    }

    .amatiran-benefits,
    .amatiran-brand-footer {
        display: none;
    }

    .amatiran-brand-mark {
        right: -30px;
        bottom: -100px;
        width: 250px;
    }

    .amatiran-login-panel {
        padding: 42px 34px 30px;
    }
}

@media (max-width: 520px) {
    .task-login #layout {
        min-height: 100dvh;
        padding: 0;
    }

    .task-login #layout-content {
        min-height: 100dvh;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .amatiran-brand-panel {
        padding: 24px 22px 26px;
    }

    #amatiran-logo {
        width: 150px;
    }

    .amatiran-secure-badge {
        padding: 7px 9px;
        font-size: 0.64rem;
    }

    .amatiran-brand-copy {
        margin-top: 28px;
    }

    .amatiran-brand-copy h2 {
        font-size: 1.75rem;
    }

    .amatiran-brand-description {
        font-size: 0.9rem;
        line-height: 1.6;
    }

    .amatiran-login-panel {
        justify-content: flex-start;
        padding: 34px 22px 24px;
    }

    .amatiran-login-card h2 {
        font-size: 1.9rem;
    }

    .amatiran-login-intro {
        margin-bottom: 24px;
    }

    .amatiran-login-help {
        margin-top: 20px;
    }
}

@media (prefers-reduced-motion: no-preference) {
    .amatiran-brand-copy,
    .amatiran-login-card {
        animation: amatiran-rise 0.55s ease both;
    }

    .amatiran-login-card {
        animation-delay: 0.08s;
    }
}

@keyframes amatiran-rise {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
