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

html, body {
    min-height: 100%;
}

body {
    font-family: 'Inter', sans-serif;
    background:
        radial-gradient(circle at 50% 18%, rgba(255,255,255,0.05), transparent 18%),
        linear-gradient(180deg, #050505 0%, #000000 100%);
    color: #111111;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: pageFade 0.2s ease;
}

.auth-card {
    width: 100%;
    max-width: 380px;
    background: #ffffff;
    border-radius: 18px;
    padding: 26px 22px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.22);
    animation: popupSmooth 0.22s ease;
}

.login-card {
    max-width: 340px;
    padding: 22px 18px;
}

.auth-back {
    display: inline-block;
    margin-bottom: 14px;
    font-size: 13px;
    color: #555;
}

.auth-logo {
    text-align: center;
    margin-bottom: 16px;
}

.auth-logo h1 {
    font-size: 21px;
    font-weight: 800;
    color: #000;
    margin-bottom: 4px;
}

.auth-logo p {
    font-size: 12px;
    color: #666;
}

.auth-title {
    font-size: 19px;
    font-weight: 800;
    text-align: center;
    color: #111;
    margin-bottom: 6px;
}

.auth-subtitle {
    font-size: 13px;
    color: #666;
    text-align: center;
    margin-bottom: 18px;
    line-height: 1.5;
}

.form-group {
    margin-bottom: 13px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #111;
}

.auth-input,
.auth-form input {
    width: 100%;
    height: 42px;
    border-radius: 10px;
    border: 1px solid #d8d8d8;
    padding: 0 12px;
    font-size: 14px;
    outline: none;
    background: #fff;
    color: #111;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-input::placeholder,
.auth-form input::placeholder {
    color: #999;
}

.auth-input:focus,
.auth-form input:focus {
    border-color: #000;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

.form-error-box {
    margin-bottom: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #fff4f4;
    border: 1px solid #f0c7c7;
}

.form-error-box p,
.field-error p {
    color: #c62828;
    font-size: 12px;
    line-height: 1.4;
}

.field-error {
    margin-top: 6px;
}

.auth-btn {
    width: 100%;
    height: 42px;
    border-radius: 10px;
    border: none;
    background: #000;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 6px;
    transition: background 0.2s ease;
}

.auth-btn:hover {
    background: #1a1a1a;
}

.auth-footer {
    margin-top: 14px;
    text-align: center;
    font-size: 13px;
    color: #666;
    line-height: 1.5;
}

.auth-footer a {
    color: #000;
    font-weight: 700;
}

.helptext {
    display: block;
    margin-top: 6px;
    font-size: 11px;
    color: #777;
    line-height: 1.4;
}

.helptext ul {
    padding-left: 16px;
    margin-top: 6px;
}

@keyframes popupSmooth {
    0% {
        opacity: 0;
        transform: translateY(8px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pageFade {
    0% {
        opacity: 0.92;
    }
    100% {
        opacity: 1;
    }
}

@media (max-width: 480px) {
    .auth-card {
        padding: 22px 16px;
        border-radius: 16px;
    }

    .auth-logo h1 {
        font-size: 20px;
    }

    .auth-title {
        font-size: 18px;
    }
}