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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #258fa1 0%, #0092e0 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.container {
    width: 100%;
    max-width: 450px;
}

.form-card, .dashboard-card {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 20px 35px rgba(0,0,0,0.2);
    padding: 2rem 1.8rem;
    transition: transform 0.2s ease;
}

.dashboard-card {
    max-width: 500px;
    margin: 0 auto;
    text-align: center;
}

h2 {
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 1.8rem;
    text-align: center;
}

.subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 1.8rem;
    font-size: 0.9rem;
}

.input-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #444;
}

input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s;
}

input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102,126,234,0.1);
}

.password-wrapper {
    position: relative;
}

.password-wrapper input {
    padding-right: 2.5rem;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.toggle-password:hover {
    opacity: 1;
}

.password-hint {
    font-size: 0.75rem;
    color: #888;
    margin-top: 0.3rem;
}

.btn {
    width: 100%;
    padding: 0.75rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.05s;
}

.btn-primary {
    background: #667eea;
    color: white;
}

.btn-primary:hover {
    background: #5a67d8;
}

.btn-secondary {
    background: #e2e8f0;
    color: #333;
    margin-top: 1rem;
}

.btn-secondary:hover {
    background: #cbd5e0;
}

.error-message {
    background: #fed7d7;
    color: #c53030;
    padding: 0.75rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    text-align: center;
    display: block;
}

.form-footer {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.9rem;
}

.form-footer a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
}

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

.user-info {
    background: #f7fafc;
    padding: 0.75rem;
    border-radius: 8px;
    margin: 1rem 0;
    font-family: monospace;
    word-break: break-all;
}

.welcome-message {
    margin: 1.5rem 0;
    color: #4a5568;
}

.admin-card {
    border-top: 5px solid #f56565;
}

.admin-actions {
    background: #fef5e7;
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
    text-align: left;
    border-left: 4px solid #ed8936;
}

@media (max-width: 480px) {
    .form-card, .dashboard-card {
        padding: 1.5rem;
    }
    h2 {
        font-size: 1.5rem;
    }
}