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

body {
    background-color: #f8fafc;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.2)), url('https://images.unsplash.com/photo-1516321318423-f06f85e504b3?q=80&w=2000&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    filter: blur(8px);
    transform: scale(1.05);
    z-index: -1;
}

/* NAVBAR */
.navbar {
    width: 100%;
    padding: 15px 40px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(229, 231, 235, 0.5);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar a {
    text-decoration: none;
    color: #2563eb;
    font-weight: 600;
    margin-left: 15px;
}

/* AUTH CARD */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 80px;
    padding-bottom: 40px;
}

.auth-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    width: 420px;
    padding: 35px;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.auth-card h2 {
    text-align: center;
    margin-bottom: 5px;
    font-size: 26px;
}

.auth-card p {
    text-align: center;
    color: #6b7280;
    margin-bottom: 25px;
    font-size: 14px;
}

/* ROLE BUTTONS */
.role-switch {
    display: flex;
    background: #f1f5f9;
    border-radius: 8px;
    margin-bottom: 20px;
}

.role-switch input {
    display: none;
}

.role-switch label {
    flex: 1;
    text-align: center;
    padding: 10px;
    cursor: pointer;
    font-size: 14px;
    border-radius: 8px;
    color: #475569;
}

.role-switch input:checked + label {
    background: #2563eb;
    color: white;
}

/* INPUTS */
.password-wrapper {
    margin-bottom: 15px;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.password-toggle {
    align-self: flex-end;
    margin-top: 6px;
    background: none !important;
    border: none;
    padding: 4px 0;
    color: #64748b;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    opacity: 0.8;
}

.password-toggle:hover {
    opacity: 1;
    color: #2563eb;
}

.password-toggle i {
    font-size: 14px;
}

.auth-card input,
.auth-card select {
    width: 100%;
    padding: 12px;
    border-radius: 6px;
    border: 1px solid #d1d5db;
    margin-bottom: 15px;
    font-size: 14px;
}

.auth-card .password-wrapper input {
    margin-bottom: 0;
}

.auth-card input:focus {
    outline: none;
    border-color: #2563eb;
}

/* BUTTON */
.auth-card button {
    width: 100%;
    background: #2563eb;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
}

.auth-card button:hover {
    background: #1e40af;
}

.auth-card button:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    opacity: 0.6;
}

/* LINKS */
.auth-links {
    text-align: center;
    margin-top: 15px;
}

.auth-links a {
    color: #2563eb;
    text-decoration: none;
    font-size: 14px;
}

/* SOCIAL LOGIN */
.social-login {
    margin-top: 20px;
}

.social-login button {
    width: 100%;
    background: white;
    border: 1px solid #d1d5db;
    color: #111827;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 6px;
    cursor: pointer;
}

.social-login button:hover {
    background: #f1f5f9;
}

/* MESSAGES */
.message {
    text-align: center;
    font-size: 14px;
    margin-top: 10px;
    padding: 12px;
    border-radius: 4px;
}

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

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

.api-message {
    margin-bottom: 15px;
}

/* Forget Password CSS */
.auth-card .info-text {
    text-align: center;
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 20px;
}

header {
    max-width: 960px;
    margin: 0 auto;
    padding: 40px 20px 24px;
    text-align: center;
}

header h1 {
    font-size: 32px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 8px;
}

header p {
    font-size: 16px;
    color: #6b7280;
}

header nav {
    margin-top: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

header nav a {
    display: inline-block;
    padding: 8px 18px;
    border-radius: 999px;
    border: 1px solid #2563eb;
    color: #2563eb;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
}

header nav a:hover {
    background-color: #2563eb;
    color: #ffffff;
}

#userLinks span {
    color: #0f172a;
    font-weight: 500;
}

section {
    max-width: 960px;
    margin: 0 auto;
    padding: 30px 20px;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.06);
}

section h2 {
    font-size: 20px;
    margin-bottom: 16px;
    color: #0f172a;
}

section ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

section li {
    flex: 1 1 200px;
    padding: 14px 16px;
    border-radius: 10px;
    background-color: #f9fafb;
    color: #111827;
    font-size: 14px;
}

footer {
    max-width: 960px;
    margin: 32px auto 24px;
    padding: 0 16px;
    text-align: center;
    font-size: 13px;
    color: #9ca3af;
}
