* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
    margin: 0;
    min-height: 100%;
    background: #0b0b10;
    color: #e9e9f2;
    font: 15px/1.6 -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
}

body {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 20px calc(24px + env(safe-area-inset-bottom));
    background:
        radial-gradient(circle at 12% 8%, rgba(124, 77, 255, .28), transparent 46%),
        radial-gradient(circle at 88% 92%, rgba(0, 200, 255, .16), transparent 46%),
        #0b0b10;
}

.auth-wrap { width: 100%; max-width: 380px; }

.auth-card {
    position: relative;
    overflow: hidden;
    padding: 34px 26px 26px;
    border-radius: 22px;
    background: rgba(24, 24, 34, .92);
    border: 1px solid rgba(255, 255, 255, .07);
    box-shadow: 0 24px 60px rgba(0, 0, 0, .55);
}

.auth-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    background: linear-gradient(90deg, #7c4dff, #00c2ff, #7c4dff);
}

.logo {
    width: 62px;
    height: 62px;
    margin: 0 auto 14px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 1px;
    color: #fff;
    background: linear-gradient(145deg, #7c4dff, #4520c9);
    box-shadow: 0 12px 26px rgba(110, 60, 240, .45);
}

h1 {
    margin: 0 0 4px;
    font-size: 20px;
    text-align: center;
    letter-spacing: .5px;
}

.sub {
    margin: 0 0 22px;
    text-align: center;
    color: #8e8ea3;
    font-size: 13px;
}

.field { margin-bottom: 14px; }

.field input {
    width: 100%;
    padding: 14px 15px;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 12px;
    background: rgba(255, 255, 255, .04);
    color: #f2f2f8;
    font-size: 15px;
    transition: .18s;
}

.field input::placeholder { color: #6b6b80; }

.field input:focus {
    outline: none;
    border-color: rgba(124, 77, 255, .8);
    background: rgba(255, 255, 255, .07);
    box-shadow: 0 0 0 4px rgba(124, 77, 255, .16);
}

.btn {
    width: 100%;
    padding: 14px;
    margin-top: 4px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, #7c4dff, #4a2bd6);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(110, 60, 240, .35);
}

.btn:active { transform: scale(.99); }

.link {
    display: block;
    margin-top: 14px;
    padding: 11px;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 12px;
    text-align: center;
    color: #b4a6ff;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.link:hover { background: rgba(255, 255, 255, .04); }

.alert {
    margin-bottom: 14px;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 13px;
    line-height: 1.5;
}

.alert.bad {
    color: #ff9d9d;
    background: rgba(255, 70, 70, .12);
    border: 1px solid rgba(255, 70, 70, .25);
}

.alert.good {
    color: #8ef0b8;
    background: rgba(40, 210, 120, .12);
    border: 1px solid rgba(40, 210, 120, .25);
}

.foot {
    margin-top: 18px;
    text-align: center;
    color: #6b6b80;
    font-size: 11px;
    letter-spacing: .5px;
}
