*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
    background: #eef2f6;
    color: #111;
}

.page {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 72px 24px 72px;
    background: url('/static/admin/images/login.png') center center / cover no-repeat;
}

.login-panel {
    width: 100%;
    max-width: 360px;
    position: relative;
    z-index: 2;
    margin-top: 8vh;
}

.form-box {
    width: 100%;
    padding: 28px 28px 24px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 24px 64px rgba(15, 23, 42, 0.18);
    backdrop-filter: blur(8px);
}

.form-box .header {
    text-align: center;
    margin-bottom: 24px;
}

.form-box .header h1 {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 8px;
    color: #111827;
}

.form-box .header p {
    color: #6b7280;
    font-size: 14px;
}

.field {
    margin-bottom: 16px;
}

.field label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 6px;
}

.field input {
    width: 100%;
    height: 44px;
    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;
}

.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;
}

.captcha-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.captcha-row input {
    flex: 1;
}

.validateImg {
    display: block;
    width: 110px;
    height: 44px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    cursor: pointer;
    object-fit: cover;
    background: #fff;
}

.row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.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: 44px;
    border-radius: 9999px;
    border: none;
    background: linear-gradient(90deg, #f9dcb8 0%, #f4c692 50%, #e8a865 100%);
    cursor: pointer;
    overflow: hidden;
    font-size: 16px;
    font-weight: 600;
    color: #5c3d1e;
    box-shadow: 0 8px 24px rgba(244, 198, 146, 0.45);
    transition: box-shadow 0.3s, transform 0.2s;
}

.hover-btn:hover {
    box-shadow: 0 12px 28px rgba(232, 168, 101, 0.5);
    transform: translateY(-1px);
}

.hover-btn .label {
    display: inline-block;
    color: #5c3d1e;
    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: linear-gradient(90deg, #f4c692 0%, #e8a865 100%);
    color: #5c3d1e;
    border-radius: 9999px;
    opacity: 0;
    transition: opacity 0.3s;
}

.hover-btn:hover .label {
    transform: translateX(48px);
    opacity: 0;
}

.hover-btn:hover .overlay {
    opacity: 1;
}

.arrow-icon {
    width: 16px;
    height: 16px;
}

.footer {
    left: 0;
    bottom: 0;
    color: #fff;
    width: 100%;
    position: fixed;
    z-index: 3;
    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;
}

@media (max-width: 640px) {
    .page {
        padding: 48px 16px 64px;
    }

    .login-panel {
        max-width: 100%;
        margin-top: 5vh;
    }

    .form-box {
        padding: 24px 18px 20px;
    }

    .form-box .header h1 {
        font-size: 22px;
    }

    .captcha-row {
        flex-direction: column;
        align-items: stretch;
    }

    .validateImg {
        width: 100%;
    }
}
