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

body {
    font-family: 'Arial', sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    line-height: 1.6;
    color: #333;
}

.container {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
    box-sizing: border-box;
    text-align: center;
}

h1, h2 {
    color: #333;
    margin-bottom: 25px;
    font-weight: bold;
}

h2 {
    font-size: 24px;
}

.logo {
    font-size: 36px;
    font-weight: bold;
    color: #2196F3;
    margin-bottom: 20px;
}

.input-group {
    margin-bottom: 20px;
    text-align: left;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #555;
}

.input-group input[type="text"],
.input-group input[type="password"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.input-group input[type="text"]:focus,
.input-group input[type="password"]:focus {
    border-color: #2196F3;
    outline: none;
    box-shadow: 0 0 0 2px rgba(33, 150, 243, 0.1);
}

.btn {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: background-color 0.3s, transform 0.1s;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    margin-bottom: 12px;
    box-sizing: border-box;
}

.btn:hover {
    opacity: 0.9;
}

.btn:active {
    transform: translateY(1px);
}

.login-btn {
    background-color: #2196F3;
    color: white;
}

.login-btn:hover {
    background-color: #0b7dda;
}

.register-btn {
    background-color: #4CAF50;
    color: white;
}

.register-btn:hover {
    background-color: #45a049;
}

.logout-btn {
    background-color: #f44336;
    color: white;
    margin-top: 20px;
}

.logout-btn:hover {
    background-color: #d32f2f;
}

.error {
    color: #d32f2f;
    font-size: 14px;
    margin-top: 5px;
    display: block;
}

.message {
    padding: 12px;
    margin-bottom: 20px;
    border-radius: 4px;
    font-size: 14px;
    text-align: left;
}

.error-message {
    background-color: #ffebee;
    color: #d32f2f;
    border-left: 4px solid #d32f2f;
}

.success-message {
    background-color: #e8f5e9;
    color: #388e3c;
    border-left: 4px solid #388e3c;
}

.info-message {
    background-color: #e3f2fd;
    color: #1976d2;
    border-left: 4px solid #1976d2;
}

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

.link a {
    color: #2196F3;
    text-decoration: none;
    font-weight: 500;
}

.link a:hover {
    text-decoration: underline;
}

.form-footer {
    text-align: center;
    margin-top: 25px;
    font-size: 14px;
    color: #777;
}

.form-footer a {
    color: #2196F3;
    text-decoration: none;
}

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

.password-hint {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
    font-style: italic;
}

.welcome-message {
    font-size: 20px;
    margin-bottom: 20px;
    color: #388e3c;
}

.user-info {
    background-color: #f5f5f5;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    text-align: left;
}

.user-info p {
    margin-bottom: 8px;
}

.session-info {
    font-size: 12px;
    color: #666;
    text-align: left;
    margin-bottom: 20px;
}

@media (max-width: 480px) {
    .container {
        margin: 20px;
        padding: 20px;
    }
    
    body {
        padding: 20px;
    }
    
    .btn {
        padding: 10px;
        font-size: 14px;
    }
    
    h2 {
        font-size: 20px;
    }
    
    .logo {
        font-size: 28px;
    }
}

[aria-required="true"] {
    border-left: 3px solid #2196F3;
}

button:focus,
input:focus,
a:focus {
    outline: 2px solid #2196F3;
    outline-offset: 2px;
}

.container,
.btn,
input {
    transition: all 0.3s ease;
}