* {
    box-sizing: border-box;
}

.auth-body {
    min-height: 100vh;
    margin: 0;
    color: #f5f5f5;
    background:
        radial-gradient(ellipse at 50% 35%, rgba(160, 0, 25, 0.17), transparent 55%),
        #080808;
    font-family: Arial, Helvetica, sans-serif;
}

.auth-nav {
    height: 82px;
    padding: 0 7%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #242424;
    background: rgba(8, 8, 8, 0.85);
}

.auth-logo {
    color: #fff;
    text-decoration: none;
    font-size: 25px;
    font-weight: 900;
    letter-spacing: -1px;
}

.auth-logo span,
.auth-card h1 span {
    color: #ff253f;
}

.auth-back {
    color: #aaa;
    font-size: 13px;
    text-decoration: none;
    transition: color 0.2s ease;
}

.auth-back:hover,
.auth-switch a:hover {
    color: #ff253f;
}

.auth-container {
    width: 100%;
    min-height: calc(100vh - 82px);
    padding: 55px 20px 25px;
    display: flex;
    align-items: center;
    flex-direction: column;
}

.auth-card {
    width: 100%;
    max-width: 460px;
    padding: 38px;
    background: linear-gradient(145deg, #151515, #0d0d0d);
    border: 1px solid #292929;
    border-radius: 16px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4);
    animation: authEnter 0.5s ease both;
}

.auth-badge {
    display: inline-block;
    padding: 7px 10px;
    color: #ff354d;
    background: rgba(255, 37, 63, 0.09);
    border: 1px solid rgba(255, 37, 63, 0.24);
    border-radius: 5px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.auth-card h1 {
    margin: 22px 0 10px;
    font-size: clamp(29px, 6vw, 38px);
    letter-spacing: -1.5px;
}

.auth-description {
    margin: 0 0 28px;
    color: #999;
    font-size: 14px;
    line-height: 1.7;
}

.auth-card form {
    display: flex;
    flex-direction: column;
}

.auth-card label {
    margin: 17px 0 9px;
    color: #dedede;
    font-size: 12px;
    font-weight: 700;
}

.auth-card input {
    width: 100%;
    min-height: 47px;
    padding: 0 14px;
    color: #fff;
    background: #090909;
    border: 1px solid #303030;
    border-radius: 7px;
    outline: none;
    font: inherit;
    font-size: 13px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.auth-card input::placeholder {
    color: #666;
}

.auth-card input:focus {
    border-color: #ff253f;
    box-shadow: 0 0 0 3px rgba(255, 37, 63, 0.1);
}

.auth-card small {
    margin-top: 8px;
    color: #777;
    font-size: 11px;
    line-height: 1.5;
}

.auth-submit {
    min-height: 49px;
    margin-top: 26px;
    padding: 0 17px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #fff;
    background: #e91935;
    border: 1px solid #ff334d;
    border-radius: 7px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.8px;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.auth-submit:hover:not(:disabled) {
    background: #ff253f;
    box-shadow: 0 8px 25px rgba(255, 37, 63, 0.2);
    transform: translateY(-2px);
}

.auth-submit:disabled {
    opacity: 0.65;
    cursor: wait;
}

.auth-message {
    min-height: 0;
    margin: 14px 0 0;
    color: #ff697a;
    font-size: 12px;
    line-height: 1.7;
    overflow-wrap: anywhere;
}

.auth-message:empty {
    display: none;
}

.auth-message.success {
    color: #6ee7a0;
}

.auth-switch {
    margin-top: 25px;
    padding-top: 22px;
    color: #929292;
    border-top: 1px solid #292929;
    text-align: center;
    font-size: 12px;
}

.auth-switch a {
    margin-left: 4px;
    color: #ff354d;
    text-decoration: none;
    font-weight: 700;
}

.auth-footer {
    margin-top: 30px;
    color: #555;
    text-align: center;
    font-size: 10px;
    letter-spacing: 1.5px;
}

@keyframes authEnter {
    from {
        opacity: 0;
        transform: translateY(14px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 520px) {
    .auth-nav {
        height: 70px;
        padding: 0 20px;
    }

    .auth-logo {
        font-size: 21px;
    }

    .auth-container {
        padding: 35px 14px 22px;
    }

    .auth-card {
        padding: 26px 21px;
    }

    .auth-back {
        font-size: 11px;
    }
}
#discord-login-button {
    width: 100%;
    margin: 12px 0;
    cursor: pointer;
}

#discord-login-button:disabled {
    opacity: 0.65;
    cursor: wait;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 22px 0;
    color: #999;
    font-size: 11px;
    letter-spacing: 2px;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.12);
}
.discord-button {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    cursor: pointer;
}

.discord-button:disabled {
    opacity: 0.6;
    cursor: wait;
}

.discord-icon {
    font-size: 22px;
}

.discord-button:hover {
    transform: translateY(-2px);
}