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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.container {
    background: white;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 400px;
    padding: 40px;
}

h1 {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
    font-size: 28px;
}

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

label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: 500;
    font-size: 14px;
}

input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s;
}

input:focus {
    outline: none;
    border-color: #667eea;
}

button {
    width: 100%;
    padding: 12px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    margin-bottom: 15px;
}

button:hover {
    background: #5568d3;
}

button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.toggle-form {
    text-align: center;
    font-size: 14px;
    color: #666;
}

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

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

.hidden {
    display: none;
}

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

.error {
    background: #fee;
    color: #c33;
    border: 1px solid #fcc;
}

.success {
    background: #efe;
    color: #3c3;
    border: 1px solid #cfc;
}

.user-info {
    background: #f5f5f5;
    padding: 20px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.user-info h2 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #333;
}

.user-info p {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}

.logout-btn {
    background: #999;
    margin-top: 15px;
}

.logout-btn:hover {
    background: #777;
}
