/* 前台访问密码页 */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
}

body.access-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 24px;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    -webkit-font-smoothing: antialiased;
    background-color: #121415;
    background-image:
        linear-gradient(160deg, rgba(12, 20, 30, .78) 0%, rgba(12, 20, 30, .30) 45%, rgba(12, 20, 30, .82) 100%),
        url("/static/img/access-bg.jpg");
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: #27292a;
}

.access-card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 400px;
    padding: 36px 34px 28px;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 30px 70px rgba(0, 0, 0, .38);
    animation: access-card-in .55s cubic-bezier(.2, .8, .2, 1) both;
}

@keyframes access-card-in {
    from {
        opacity: 0;
        transform: translateY(18px) scale(.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.access-card .brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 28px;
}

.access-card .brand-mark {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: linear-gradient(135deg, #95cd62, #68b828);
    box-shadow: 0 4px 12px rgba(104, 184, 40, .35);
}

.access-card .brand-mark svg {
    width: 19px;
    height: 19px;
    fill: #fff;
}

.access-card .brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}

.access-card .brand-name {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .2px;
    color: #2c2e2f;
}

.access-card .brand-sub {
    font-size: 11px;
    letter-spacing: 1px;
    color: #979898;
}

.access-card .lock-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: rgba(141, 198, 63, .12);
    border: 1px solid rgba(141, 198, 63, .28);
}

.access-card .lock-badge svg {
    width: 24px;
    height: 24px;
    stroke: #68b828;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.access-card h1 {
    margin-bottom: 8px;
    font-size: 21px;
    font-weight: 700;
    text-align: center;
    letter-spacing: .5px;
    color: #27292a;
}

.access-card .subtitle {
    margin-bottom: 26px;
    font-size: 12.5px;
    line-height: 1.6;
    text-align: center;
    color: #979898;
}

.access-card .field {
    position: relative;
}

.access-card .field-icon {
    position: absolute;
    top: 50%;
    left: 14px;
    display: flex;
    transform: translateY(-50%);
    pointer-events: none;
}

.access-card .field-icon svg {
    width: 17px;
    height: 17px;
    stroke: #b8bbb3;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: stroke .2s;
}

.access-card .field input {
    width: 100%;
    height: 46px;
    padding: 0 46px 0 40px;
    font-size: 14px;
    color: #27292a;
    background: #f6f7f8;
    border: 1px solid #e3e5e6;
    border-radius: 10px;
    outline: none;
    transition: border-color .2s, box-shadow .2s, background .2s;
}

.access-card .field input::placeholder {
    color: #b8bbb3;
}

.access-card .field input:focus {
    background: #fff;
    border-color: #8dc63f;
    box-shadow: 0 0 0 3px rgba(141, 198, 63, .16);
}

.access-card .field input:focus ~ .field-icon svg {
    stroke: #8dc63f;
}

.access-card .toggle {
    position: absolute;
    top: 50%;
    right: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transform: translateY(-50%);
}

.access-card .toggle:hover {
    background: #eef0f1;
}

.access-card .toggle svg {
    width: 17px;
    height: 17px;
    stroke: #b8bbb3;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.access-card .toggle:hover svg {
    stroke: #979898;
}

.access-card .submit-btn {
    width: 100%;
    height: 46px;
    margin-top: 18px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 3px;
    color: #fff;
    cursor: pointer;
    background: linear-gradient(135deg, #95cd62, #68b828);
    border: none;
    border-radius: 10px;
    box-shadow: 0 8px 18px rgba(104, 184, 40, .3);
    transition: transform .15s, box-shadow .2s, filter .2s;
}

.access-card .submit-btn:hover {
    filter: brightness(1.04);
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(104, 184, 40, .38);
}

.access-card .submit-btn:active {
    transform: translateY(0);
    box-shadow: 0 5px 12px rgba(104, 184, 40, .28);
}

.access-card .tips {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 16px;
    padding: 9px 12px;
    font-size: 12.5px;
    color: #cc3f44;
    background: rgba(204, 63, 68, .08);
    border: 1px solid rgba(204, 63, 68, .16);
    border-radius: 8px;
    animation: access-tips-shake .4s ease;
}

.access-card .tips svg {
    flex: none;
    width: 14px;
    height: 14px;
    stroke: #cc3f44;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

@keyframes access-tips-shake {
    0%, 100% {
        transform: translateX(0);
    }
    20%, 60% {
        transform: translateX(-5px);
    }
    40%, 80% {
        transform: translateX(5px);
    }
}

.access-card .page-footer {
    margin-top: 24px;
    padding-top: 16px;
    font-size: 11px;
    letter-spacing: .5px;
    text-align: center;
    color: #b8bbb3;
    border-top: 1px solid #f0f1f2;
}

@media (max-width: 480px) {
    .access-card {
        padding: 28px 22px 22px;
        border-radius: 14px;
    }

    .access-card .lock-badge {
        width: 50px;
        height: 50px;
        margin-bottom: 14px;
    }

    .access-card h1 {
        font-size: 19px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .access-card, .access-card .tips {
        animation: none;
    }
}
