/* ============================================================
   PMB User & Auth Styles - Modern Clean Design
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary:       #6C3CE1;
    --primary-dark:  #4F28B8;
    --primary-light: #8B5CF6;
    --accent:        #F59E0B;
    --bg-body:       #F0F2F8;
    --card-bg:       #FFFFFF;
    --border-color:  #E2E8F0;
    --text-dark:     #1E293B;
    --text-muted:    #64748B;
    --success:       #10B981;
    --danger:        #EF4444;
    --radius:        14px;
    --radius-sm:     8px;
    --shadow-md:     0 8px 32px rgba(0,0,0,0.1);
    --shadow-lg:     0 20px 60px rgba(0,0,0,0.15);
}

*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-dark);
    font-size: 0.875rem;
    -webkit-font-smoothing: antialiased;
    margin: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.user-content {
    flex: 1;
}

/* ─────────────────────────────────────────────────────────────
   AUTH PAGE  (Login / Register)
───────────────────────────────────────────────────────────── */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow: hidden;
    background: #0F0B2D;
}

/* Animated background blobs */
.auth-wrapper::before,
.auth-wrapper::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.35;
    animation: floatBlob 8s ease-in-out infinite alternate;
}
.auth-wrapper::before {
    width: 500px; height: 500px;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    top: -100px; left: -100px;
}
.auth-wrapper::after {
    width: 400px; height: 400px;
    background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
    bottom: -80px; right: -80px;
    animation-delay: -4s;
}

@keyframes floatBlob {
    from { transform: translate(0, 0) scale(1); }
    to   { transform: translate(30px, 20px) scale(1.1); }
}

.auth-card {
    background: rgba(255,255,255,0.04);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 920px;
    display: flex;
    overflow: hidden;
    position: relative;
    z-index: 10;
}

/* Left panel */
.auth-left {
    flex: 1;
    background: url('../img/campus-bg.jpg') center center / cover;
    position: relative;
    display: none;
    min-height: 560px;
}

@media (min-width: 768px) { .auth-left { display: block; } }

.auth-left::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, rgba(108,60,225,0.85) 0%, rgba(15,11,45,0.9) 100%);
}

.auth-info {
    position: absolute;
    bottom: 48px;
    left: 40px;
    right: 30px;
    color: #fff;
    z-index: 2;
}

.auth-info h2 {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 8px;
}

.auth-info p { font-size: 0.85rem; opacity: 0.75; margin: 0; }

/* Right panel */
.auth-right {
    flex: 1;
    padding: 48px 44px;
    background: #fff;
}

@media (max-width: 767px) {
    .auth-card { border-radius: 20px; }
    .auth-right { padding: 36px 28px; }
}

.auth-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 4px;
}

/* Pills nav override for auth */
.auth-right .nav-pills {
    background: var(--bg-body);
    border-radius: 10px;
    padding: 4px;
}
.auth-right .nav-pills .nav-link {
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted);
    padding: 8px 16px;
    transition: all .2s;
}
.auth-right .nav-pills .nav-link.active {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 4px 12px rgba(108,60,225,0.3);
}

/* Input group fixes */
.auth-right .input-group-text {
    background: #F8FAFC;
    border-color: var(--border-color);
}
.auth-right .form-control {
    background: #F8FAFC;
    border-color: var(--border-color);
    border-radius: 0;
    font-size: 0.85rem;
    padding: 11px 14px;
}
.auth-right .form-control:focus {
    background: #fff;
    border-color: var(--primary);
    box-shadow: none;
}
.auth-right .input-group > :first-child { border-radius: var(--radius-sm) 0 0 var(--radius-sm) !important; }
.auth-right .input-group > :last-child  { border-radius: 0 var(--radius-sm) var(--radius-sm) 0 !important; }

/* Submit btn */
.auth-right .btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border: none;
    border-radius: var(--radius-sm);
    padding: 12px;
    font-weight: 700;
    font-size: 0.875rem;
    width: 100%;
    letter-spacing: .02em;
    box-shadow: 0 4px 14px rgba(108,60,225,0.35);
    transition: all .2s;
}
.auth-right .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(108,60,225,0.45);
}

/* ─────────────────────────────────────────────────────────────
   USER PANEL  (Dashboard, Form, etc.)
───────────────────────────────────────────────────────────── */
.user-navbar {
    background: #fff;
    box-shadow: 0 1px 0 var(--border-color);
    padding: 0;
}

.user-navbar .navbar-brand {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-dark);
}

.user-navbar .nav-link {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-muted);
    padding: 22px 14px;
    border-bottom: 2px solid transparent;
    transition: all .2s;
}
.user-navbar .nav-link:hover,
.user-navbar .nav-link.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.user-content {
    padding: 36px 0 60px;
}

/* Status card */
.status-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 8px rgba(0,0,0,.04);
    transition: box-shadow .25s;
}
.status-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,.08); }

/* Step cards */
.card {
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    box-shadow: 0 1px 3px rgba(0,0,0,.04);
}

/* Form inputs */
.form-control, .form-select {
    border-radius: var(--radius-sm);
    border-color: var(--border-color);
    font-size: 0.85rem;
    padding: 9px 14px;
    transition: border-color .2s, box-shadow .2s;
}
.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(108,60,225,0.1);
}

.form-label { font-size: 0.8rem; font-weight: 600; margin-bottom: 5px; }

.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
    font-weight: 600;
    font-size: 0.85rem;
    border-radius: var(--radius-sm);
    box-shadow: 0 4px 12px rgba(108,60,225,0.28);
    transition: all .2s;
}
.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(108,60,225,0.36);
}

.badge { border-radius: 6px; font-weight: 600; font-size: 0.7rem; }

/* Responsive table */
.table { font-size: 0.825rem; }
.table th {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--text-muted);
}
.table td { vertical-align: middle; }
