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

body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #0f1923 0%, #1a2a3a 50%, #1e3348 100%);
    background-attachment: fixed;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.auth-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 420px;
    max-width: 92vw;
    padding: 40px 36px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    backdrop-filter: blur(12px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.auth-card h2 {
    color: #e2e8f0;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 32px;
    letter-spacing: 1px;
}

.auth-field {
    position: relative;
    width: 100%;
    margin-bottom: 28px;
}

.auth-field input {
    outline: none;
    border: none;
    width: 100%;
    padding: 12px 0 8px;
    color: #e2e8f0;
    font-size: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    background-color: transparent;
    transition: border-color 0.3s;
}

.auth-field input::placeholder {
    color: rgba(255, 255, 255, 0.35);
    font-size: 14px;
}

.auth-field input:focus {
    border-bottom-color: #6366f1;
}

.auth-field label {
    position: absolute;
    top: 12px;
    left: 0;
    color: rgba(255, 255, 255, 0.5);
    font-size: 15px;
    pointer-events: none;
    transition: all 0.3s ease;
}

.auth-field input:focus + label,
.auth-field input:valid + label {
    top: -14px;
    color: #818cf8;
    font-size: 12px;
}

.auth-btn {
    width: 100%;
    padding: 12px 0;
    margin-top: 8px;
    border: 1px solid rgba(99, 102, 241, 0.5);
    border-radius: 10px;
    background: rgba(99, 102, 241, 0.2);
    color: #c7d2fe;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    letter-spacing: 2px;
}

.auth-btn:hover {
    background: rgba(99, 102, 241, 0.35);
    border-color: rgba(99, 102, 241, 0.7);
    color: #e0e7ff;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.25);
    transform: translateY(-1px);
}

.auth-btn:active {
    transform: translateY(0);
}

.auth-links {
    width: 100%;
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.auth-links a {
    color: rgba(165, 180, 252, 0.7);
    font-size: 13px;
    text-decoration: none;
    transition: color 0.25s;
}

.auth-links a:hover {
    color: #a5b4fc;
    text-decoration: underline;
}

.auth-hint {
    width: 100%;
    margin-top: 18px;
    padding: 12px 14px;
    background: rgba(99, 102, 241, 0.06);
    border: 1px solid rgba(99, 102, 241, 0.12);
    border-radius: 8px;
    color: rgba(203, 213, 225, 0.7);
    font-size: 12px;
    line-height: 1.6;
    text-align: left;
}

@media (max-width: 480px) {
    .auth-card {
        padding: 32px 24px;
    }

    .auth-card h2 {
        font-size: 20px;
        margin-bottom: 24px;
    }

    .auth-field {
        margin-bottom: 22px;
    }
}
