* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.auth-container {
    width: 100%;
    max-width: 450px;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.auth-header {
    background: linear-gradient(to right, #4776e6, #8e54e9);
    color: white;
    padding: 25px 20px;
    text-align: center;
}

.auth-header h1 {
    font-size: 28px;
    margin-bottom: 10px;
}

.auth-header p {
    opacity: 0.9;
    font-size: 16px;
}

.form-container {
    padding: 30px;
}

.form-container h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: border 0.3s;
}

.form-group input:focus {
    border-color: #4776e6;
    outline: none;
}

.auth-btn {
    display: block;
    width: 100%;
    padding: 14px;
    background: linear-gradient(to right, #4776e6, #8e54e9);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, opacity 0.2s;
}

.auth-btn:hover {
    transform: translateY(-2px);
    opacity: 0.95;
}

.toggle-form {
    text-align: center;
    margin-top: 20px;
    font-size: 15px;
}

.toggle-form a {
    color: #4776e6;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
}

.toggle-form a:hover {
    text-decoration: underline;
}

.message {
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
    display: none;
}

.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.back-home {
    text-align: center;
    margin-top: 20px;
}

.back-home a {
    color: #4776e6;
    text-decoration: none;
    font-weight: 600;
}

.back-home a:hover {
    text-decoration: underline;
}

@media (max-width: 480px) {
    .auth-container {
        border-radius: 10px;
    }
    
    .form-container {
        padding: 20px;
    }
}
