@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap");

:root {
    --surface: #faf8f5;
    --card: #ffffff;
    --text: #1a1835;
    --muted: #6b6980;
    --border: #e4e2dd;
    --berry: #a21caf;
    --berry-soft: rgba(162, 28, 175, 0.10);
    --lime: #a3e635;
    --lime-fg: #1a1835;
    --danger: #ef4444;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

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

.logintest-body {
    font-family: "Plus Jakarta Sans", sans-serif;
    color: var(--text);
    background: var(--surface);
    line-height: 1.5;
    position: relative;
}

.logintest-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 55% 45% at 18% 14%, rgba(162, 28, 175, 0.14), transparent),
        radial-gradient(ellipse 40% 30% at 78% 84%, rgba(163, 230, 53, 0.18), transparent),
        linear-gradient(180deg, #fbf9f6 0%, #f7f2ee 50%, #f7f7f5 100%);
}

.auth-stage {
    position: relative;
    z-index: 1;
    width: min(540px, 100%);
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 34px 24px;
}

.auth-card {
    width: min(470px, 100%);
    border: 1px solid var(--border);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    padding: 26px 28px 24px;
    box-shadow: 0 18px 48px rgba(26, 24, 53, 0.13);
}

.auth-brand-top {
    display: block;
    width: fit-content;
    margin: 0 auto 10px;
    text-decoration: none;
    color: var(--berry);
    font-family: "Outfit", sans-serif;
    font-size: 1.95rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1;
}

.auth-headline {
    display: flex;
    align-items: center;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.auth-lock {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid rgba(162, 28, 175, 0.20);
    background: linear-gradient(180deg, rgba(162, 28, 175, 0.11), rgba(162, 28, 175, 0.04));
    display: grid;
    place-items: center;
    color: #7f22ce;
    box-shadow: 0 6px 14px rgba(162, 28, 175, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.auth-title-inline {
    margin: 0;
    font-family: "Outfit", sans-serif;
    font-weight: 800;
    font-size: 2.1rem;
    line-height: 1;
    letter-spacing: -0.035em;
    color: #1d1b3d;
    text-align: center;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
    text-decoration: none;
    cursor: pointer;
}

.auth-title-inline--brand {
    color: var(--berry);
}

.auth-card-head h2 {
    margin: 0;
    font-family: "Outfit", sans-serif;
    font-size: 1.55rem;
    letter-spacing: -0.02em;
    text-align: center;
}

.auth-card-head p {
    margin: 0;
    color: var(--muted);
    font-size: 1rem;
    text-align: center;
}

.auth-form {
    margin-top: 20px;
}

.field-label {
    display: block;
    margin-bottom: 7px;
    margin-top: 14px;
    font-weight: 700;
    font-size: 0.88rem;
}

.field-wrap {
    position: relative;
}

.field-input {
    width: 100%;
    height: 48px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: #fff;
    padding: 0 14px;
    color: var(--text);
    font-size: 0.96rem;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.field-input::placeholder {
    color: #8e8ba4;
}

.field-input:focus {
    border-color: rgba(162, 28, 175, 0.45);
    box-shadow: 0 0 0 4px rgba(162, 28, 175, 0.12);
    background: #fff;
}

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

.field-eye {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: #4f4b6d;
    height: 34px;
    width: 34px;
    border-radius: 10px;
    padding: 0;
    cursor: pointer;
    display: grid;
    place-items: center;
}

.field-eye:hover {
    background: var(--berry-soft);
    color: var(--berry);
}

.eye-hide {
    display: none;
}

.field-eye.is-on .eye-open {
    display: none;
}

.field-eye.is-on .eye-hide {
    display: block;
}

.caps-alert {
    margin: 7px 0 0;
    color: #9a3412;
    font-size: 0.8rem;
    font-weight: 700;
}

.form-row {
    margin-top: 14px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
}

.remember {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.87rem;
    color: #4d4968;
}

.remember input {
    width: 16px;
    height: 16px;
    accent-color: var(--berry);
}

.inline-link {
    color: var(--berry);
    text-decoration: none;
    font-size: 0.86rem;
    font-weight: 700;
}

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

.submit-btn {
    margin-top: 16px;
    width: 100%;
    height: 50px;
    border: 0;
    border-radius: 12px;
    cursor: pointer;
    font-family: "Outfit", sans-serif;
    font-size: 0.96rem;
    font-weight: 700;
    color: var(--lime-fg);
    background: linear-gradient(180deg, #b7f84e, var(--lime));
    box-shadow: 0 10px 28px rgba(163, 230, 53, 0.42);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(163, 230, 53, 0.46);
}

.submit-btn:disabled {
    cursor: not-allowed;
    filter: saturate(0.75);
}

.error-box {
    margin-top: 12px;
    border: 1px solid rgba(239, 68, 68, 0.28);
    background: rgba(239, 68, 68, 0.10);
    border-radius: 12px;
    padding: 10px 12px;
    color: var(--danger);
    font-size: 0.86rem;
    font-weight: 700;
    display: grid;
    gap: 5px;
}

.auth-foot {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px dashed var(--border);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    color: var(--muted);
}

.inline-link--strong {
    color: #0f766e;
}

@media (max-width: 940px) {
    .auth-stage {
        width: min(520px, 100%);
        padding: 20px 14px;
    }

    .auth-card {
        border-radius: 20px;
        padding: 24px 18px 20px;
    }

    .auth-headline {
        gap: 9px;
        text-align: center;
        margin-bottom: 10px;
    }

    .auth-title-inline {
        text-align: center;
        font-size: 1.75rem;
    }

    .auth-card-head p {
        text-align: center;
    }
}
