:root{
    --primary: #A16AE8;
    --primary-600: #8f4fe0;
    --primary-light: #b589f0;
    --muted: #f4f6fb;
    --card-bg: #ffffff;
    --text-primary: #1a1a2e;
    --text-secondary: #6c7280;
}

body {
    font-family: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
    background: linear-gradient(135deg, var(--muted) 0%, #f0e6ff 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.login-container, .register-container, .forgot-password-container {
    background-color: var(--card-bg);
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(161, 106, 232, 0.15);
    width: 340px;
    text-align: center;
    border: 1px solid rgba(161, 106, 232, 0.08);
    animation: slideUp 0.4s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

h2 {
    margin-bottom: 24px;
    color: var(--text-primary);
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

input[type="text"], input[type="password"], input[type="email"] {
    width: 100%;
    padding: 12px 14px;
    margin: 12px 0;
    border: 1px solid rgba(161, 106, 232, 0.15);
    border-radius: 10px;
    background: #f9fafb;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
    box-sizing: border-box;
}

input[type="text"]:focus, input[type="password"]:focus, input[type="email"]:focus{
    outline: none;
    border-color: var(--primary);
    background: var(--card-bg);
    box-shadow: 0 0 0 4px rgba(161, 106, 232, 0.1);
}

button {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, var(--primary), var(--primary-600));
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    margin-top: 14px;
    font-weight: 700;
    box-shadow: 0 4px 16px rgba(161, 106, 232, 0.25);
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(161, 106, 232, 0.35);
}

button:active {
    transform: translateY(0);
}

.muted-link{
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 16px;
    display: block;
}

.muted-link a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.muted-link a:hover {
    color: var(--primary-600);
}

#response {
    margin-top: 18px;
    padding: 12px 16px;
    border-radius: 10px;
    font-weight: 500;
    color: #e11d48;
    background: rgba(225, 29, 72, 0.08);
    border: 1px solid rgba(225, 29, 72, 0.15);
    display: none;
}

#response.error {
    display: block;
}

#response.success {
    color: #059669;
    background: rgba(5, 150, 105, 0.08);
    border-color: rgba(5, 150, 105, 0.15);
}

.brand {
    color: var(--primary);
    font-weight: 800;
    font-size: 1.5rem;
    margin-bottom: 12px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-primary);
    text-align: left;
    font-size: 0.9rem;
}
