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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    height: 100vh;
    overflow: hidden;
    background: #fff;
    color: #111;
}

.page {
    display: grid;
    grid-template-columns: 1fr 1fr;
    height: 100vh;
}

.left {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 48px;
    background: linear-gradient(135deg, #9ca3af, #6b7280, #4b5563);
    color: #fff;
    overflow: hidden;
}

.blob1,
.blob2 {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    pointer-events: none;
}

.blob1 {
    top: 25%;
    right: 25%;
    width: 256px;
    height: 256px;
    background: rgba(156, 163, 175, 0.2);
}

.blob2 {
    bottom: 25%;
    left: 25%;
    width: 384px;
    height: 384px;
    background: rgba(209, 213, 219, 0.2);
}

.grid-overlay {
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(
        0deg,
        rgba(255, 255, 255, 0.05) 0 1px,
        transparent 1px 20px
    ),
    repeating-linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.05) 0 1px,
        transparent 1px 20px
    );
    pointer-events: none;
}

.characters-wrap {
    position: relative;
    z-index: 20;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    height: 500px;
}

.characters {
    position: relative;
    width: 550px;
    height: 400px;
}

.char {
    position: absolute;
    bottom: 0;
    transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: bottom center;
}

.char-purple {
    left: 70px;
    width: 180px;
    height: 400px;
    background: #6c3ff5;
    border-radius: 10px 10px 0 0;
    z-index: 1;
}

.char-purple .eyes-wrap {
    position: absolute;
    display: flex;
    gap: 32px;
    transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.char-black {
    left: 240px;
    width: 120px;
    height: 310px;
    background: #2d2d2d;
    border-radius: 8px 8px 0 0;
    z-index: 2;
}

.char-black .eyes-wrap {
    position: absolute;
    display: flex;
    gap: 24px;
    transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.char-orange {
    left: 0;
    width: 240px;
    height: 200px;
    background: #ff9b6b;
    border-radius: 120px 120px 0 0;
    z-index: 3;
}

.char-orange .eyes-wrap {
    position: absolute;
    display: flex;
    gap: 32px;
    transition: all 0.2s ease-out;
}

.char-yellow {
    left: 310px;
    width: 140px;
    height: 230px;
    background: #e8d754;
    border-radius: 70px 70px 0 0;
    z-index: 4;
}

.char-yellow .eyes-wrap {
    position: absolute;
    display: flex;
    gap: 24px;
    transition: all 0.2s ease-out;
}

.char-yellow .mouth {
    position: absolute;
    width: 80px;
    height: 4px;
    background: #2d2d2d;
    border-radius: 4px;
    transition: all 0.2s ease-out;
}

.eyeball {
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: height 0.15s;
    background: #fff;
}

.eyeball .pupil {
    border-radius: 50%;
    background: #2d2d2d;
    transition: transform 0.1s ease-out;
}

.pupil-only {
    border-radius: 50%;
    background: #2d2d2d;
    transition: transform 0.1s ease-out;
}

.right {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
}

.form-box {
    width: 100%;
    max-width: 420px;
}

.form-box .header {
    text-align: center;
    margin-bottom: 40px;
}

.form-box .header h1 {
    font-size: 30px;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 8px;
}

.form-box .header p {
    color: #6b7280;
    font-size: 14px;
}

.field {
    margin-bottom: 20px;
}

.field label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 6px;
}

.field input {
    width: 100%;
    height: 48px;
    padding: 0 16px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s;
    background: #fff;
}

.field input:focus {
    border-color: #111;
}

.captcha-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 148px;
    gap: 12px;
    align-items: stretch;
}

.captcha-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 48px;
    padding: 0 12px 0 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #f9fafb;
    color: #111;
    cursor: pointer;
    font: inherit;
    transition: border-color 0.2s, background 0.2s;
}

.captcha-card:hover {
    border-color: #111;
    background: #fff;
}

.captcha-card #captchaQuestion {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0;
    white-space: nowrap;
}

.captcha-refresh {
    margin-left: 10px;
    color: #6b7280;
    font-size: 12px;
    white-space: nowrap;
}

.field .input-wrap {
    position: relative;
}

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

.toggle-pw {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    background: none;
    border: none;
    cursor: pointer;
    color: #9ca3af;
    transition: color 0.2s;
    padding: 4px;
}

.toggle-pw:hover {
    color: #111;
}

.toggle-pw svg {
    width: 20px;
    height: 20px;
    pointer-events: none;
}

.row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.row .remember {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    cursor: pointer;
}

.row .remember input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #111;
    cursor: pointer;
}

.row a {
    font-size: 14px;
    font-weight: 500;
    color: #111;
    text-decoration: none;
}

.row a:hover {
    text-decoration: underline;
}

.hover-btn {
    position: relative;
    width: 100%;
    height: 48px;
    border-radius: 9999px;
    border: 1px solid #e5e7eb;
    background: #fff;
    cursor: pointer;
    overflow: hidden;
    font-size: 16px;
    font-weight: 600;
    color: #111;
}

.hover-btn .label {
    display: inline-block;
    transition: all 0.3s;
}

.hover-btn .overlay {
    position: absolute;
    inset: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #111;
    color: #fff;
    border-radius: 9999px;
    opacity: 0;
    transition: opacity 0.3s;
}

.hover-btn:hover .label {
    transform: translateX(48px);
    opacity: 0;
}

.hover-btn:hover .overlay {
    opacity: 1;
}

.divider {
    text-align: center;
    margin-top: 32px;
    font-size: 14px;
    color: #6b7280;
}

.divider a {
    color: #111;
    font-weight: 500;
    text-decoration: none;
}

.divider a:hover {
    text-decoration: underline;
}

.arrow-icon {
    width: 16px;
    height: 16px;
}

@media (max-width: 1024px) {
    body {
        height: auto;
        overflow: auto;
    }

    .page {
        grid-template-columns: 1fr;
        height: auto;
        min-height: 100vh;
    }

    .left {
        padding: 24px 16px 0;
    }

    .characters-wrap {
        height: 220px;
    }

    .characters {
        transform: scale(0.45);
        transform-origin: bottom center;
    }

    .right {
        padding: 24px 20px 40px;
    }

    .form-box .header {
        margin-bottom: 24px;
    }

    .captcha-row {
        grid-template-columns: 1fr;
    }

    .captcha-card {
        justify-content: center;
        gap: 14px;
    }
}

.footer {
    left: 0;
    bottom: 0;
    color: #fff;
    width: 100%;
    position: fixed;
    text-align: center;
    line-height: 30px;
    padding-bottom: 10px;
    text-shadow: #000 0.1em 0.1em 0.1em;
    font-size: 14px;
}

.footer a, .footer span {
    color: #fff;
}

.padding-5 {
    padding: 5px !important;
}

/*
 * AC admin login refinement.
 * Keep the official EasyAdmin structure, but make the entry screen quieter,
 * sharper and closer to Apple's product UI language.
 */
:root {
    --login-bg: #f5f5f7;
    --login-ink: #1d1d1f;
    --login-muted: #6e6e73;
    --login-line: rgba(29, 29, 31, .12);
    --login-blue: #0071e3;
    --login-blue-hover: #0077ed;
}

*,
*::before,
*::after {
    letter-spacing: 0 !important;
}

body {
    background: var(--login-bg);
    color: var(--login-ink);
}

.page {
    min-height: 100vh;
    background:
        linear-gradient(90deg, #111113 0 50%, var(--login-bg) 50% 100%);
}

.left {
    background: #111113;
}

.blob1,
.blob2,
.grid-overlay {
    display: none;
}

.characters-wrap {
    width: min(72vw, 560px);
    max-height: 62vh;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .02));
    box-shadow: 0 34px 80px rgba(0, 0, 0, .26);
    overflow: hidden;
}

.characters {
    transform: scale(.82);
    transform-origin: center bottom;
}

.char {
    filter: saturate(.92);
}

.right {
    background: var(--login-bg);
}

.form-box {
    max-width: 430px;
    padding: 34px;
    border: 1px solid var(--login-line);
    border-radius: 8px;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 28px 60px rgba(15, 23, 42, .08);
}

.form-box .header {
    margin-bottom: 30px;
    text-align: left;
}

.form-box .header h1 {
    margin-bottom: 10px;
    color: var(--login-ink);
    font-size: 31px;
    font-weight: 750;
    line-height: 1.18;
}

.form-box .header p,
.field label,
.captcha-refresh,
.row .remember {
    color: var(--login-muted);
}

.field label {
    font-weight: 650;
}

.field input,
.captcha-card {
    height: 46px;
    border-color: var(--login-line);
    border-radius: 8px;
    background: rgba(255, 255, 255, .96);
    color: var(--login-ink);
    transition: border-color .16s ease, box-shadow .16s ease, background-color .16s ease;
}

.field input:hover,
.captcha-card:hover {
    border-color: rgba(0, 113, 227, .34);
    background: #fff;
}

.field input:focus {
    border-color: var(--login-blue);
    box-shadow: 0 0 0 3px rgba(0, 113, 227, .14);
}

.captcha-card #captchaQuestion {
    color: var(--login-ink);
}

.row a,
.toggle-pw:hover {
    color: var(--login-blue);
}

.row a:hover {
    color: var(--login-blue-hover);
}

.row .remember input[type="checkbox"] {
    accent-color: var(--login-blue);
}

.hover-btn {
    height: 46px;
    border-color: var(--login-blue);
    border-radius: 8px;
    background: var(--login-blue);
    color: #fff;
    box-shadow: 0 10px 24px rgba(0, 113, 227, .22);
    transition: background-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.hover-btn .overlay {
    border-radius: 8px;
    background: var(--login-blue-hover);
}

.hover-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 32px rgba(0, 113, 227, .26);
}

.footer {
    color: rgba(255, 255, 255, .72);
    text-shadow: none;
}

.footer a,
.footer span {
    color: rgba(255, 255, 255, .72);
}

@media (max-width: 1024px) {
    .page {
        background: var(--login-bg);
    }

    .left {
        min-height: 240px;
        padding: 20px;
    }

    .characters-wrap {
        width: min(100%, 430px);
        height: 220px;
    }

    .characters {
        transform: scale(.46);
    }

    .form-box {
        padding: 26px;
    }

    .footer,
    .footer a,
    .footer span {
        color: var(--login-muted);
    }
}

@media (max-width: 520px) {
    .left {
        min-height: 178px;
        padding: 14px;
    }

    .characters-wrap {
        height: 168px;
    }

    .characters {
        transform: scale(.34);
    }

    .right {
        padding: 18px 14px 34px;
    }

    .form-box {
        padding: 22px 18px;
        box-shadow: none;
    }

    .form-box .header h1 {
        font-size: 25px;
    }

    .row {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }
}
