* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', sans-serif;
    background: #0f0f1a;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.auth-wrapper {
    width: 100%;
    max-width: 420px;
    padding: 20px;
}

.auth-logo {
    text-align: center;
    margin-bottom: 32px;
}

.auth-logo h1 {
    font-size: 28px;
    font-weight: 700;
    color: #7c6bff;
    letter-spacing: 2px;
}

.auth-logo p {
    font-size: 13px;
    color: #666;
    margin-top: 6px;
}

.auth-card {
    background: #1a1a2e;
    border: 1px solid #2a2a4a;
    border-radius: 16px;
    padding: 36px 32px;
}

.auth-card h2 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 24px;
    color: #fff;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 13px;
    color: #999;
    margin-bottom: 8px;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    background: #0f0f1a;
    border: 1px solid #2a2a4a;
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    transition: border-color 0.2s;
    outline: none;
}

.form-group input:focus {
    border-color: #7c6bff;
}

.form-group input::placeholder {
    color: #444;
}

.btn-primary {
    width: 100%;
    padding: 13px;
    background: #7c6bff;
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    margin-top: 8px;
}

.btn-primary:hover {
    background: #6a59e8;
}

.btn-primary:active {
    transform: scale(0.98);
}

.auth-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 13px;
    color: #666;
}

.auth-footer a {
    color: #7c6bff;
    text-decoration: none;
}

.auth-footer a:hover {
    text-decoration: underline;
}

.error-msg {
    background: rgba(255, 80, 80, 0.1);
    border: 1px solid rgba(255, 80, 80, 0.3);
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 13px;
    color: #ff6b6b;
    margin-bottom: 16px;
}

.success-msg {
    background: rgba(80, 200, 120, 0.1);
    border: 1px solid rgba(80, 200, 120, 0.3);
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 13px;
    color: #50c878;
    margin-bottom: 16px;
}

.divider {
    text-align: center;
    color: #444;
    font-size: 12px;
    margin: 20px 0;
    position: relative;
}

.divider::before,
.divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 42%;
    height: 1px;
    background: #2a2a4a;
}

.divider::before { left: 0; }
.divider::after  { right: 0; }