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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
    background: #f7f7f8;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

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

.auth-card {
    background: white;
    border-radius: 12px;
    padding: 48px 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
}

.auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.auth-logo {
    width: 80px;
    height: 80px;
    margin-bottom: 24px;
    object-fit: contain;
}

.auth-header h1 {
    font-size: 24px;
    font-weight: 600;
    color: #202124;
    margin-bottom: 8px;
}

.auth-header p {
    font-size: 14px;
    color: #565869;
}

.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

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

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

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    font-weight: 500;
    color: #374151;
}

.form-group input {
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: #202123;
    box-shadow: 0 0 0 3px rgba(32, 33, 35, 0.1);
}

.btn-primary {
    padding: 12px 24px;
    background: #202123;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

.btn-primary:hover {
    background: #2d2e30;
}

.btn-primary:active {
    transform: scale(0.98);
}

.auth-footer {
    margin-top: 24px;
    text-align: center;
}

.auth-footer p {
    font-size: 14px;
    color: #6b7280;
}

.auth-footer a {
    color: #202123;
    text-decoration: none;
    font-weight: 600;
}

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

/* Role info section */
.role-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 24px;
    padding: 12px;
    background: #f0fdf4;
    border-radius: 8px;
    border: 1px solid #bbf7d0;
}

.role-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.role-umum {
    background: #e0e7ff;
    color: #3730a3;
}

.role-pelajar {
    background: #dbeafe;
    color: #1e40af;
}

.role-pengajar {
    background: #dcfce7;
    color: #166534;
}

.token-info {
    font-size: 14px;
    font-weight: 600;
    color: #166534;
}

.required {
    color: #ef4444;
}

.form-divider {
    border: none;
    border-top: 1px solid #e5e7eb;
    margin: 8px 0;
}

.role-notice {
    margin-top: 24px;
    padding: 16px;
    background: #fef3c7;
    border-radius: 8px;
    border: 1px solid #fcd34d;
}

.role-notice p {
    font-size: 13px;
    color: #92400e;
    line-height: 1.5;
}

@media (max-width: 480px) {
    .auth-card {
        padding: 24px;
    }

    .auth-header h1 {
        font-size: 24px;
    }

    .role-info {
        flex-direction: column;
        gap: 8px;
    }
}
