/* ===========================
   GLOBAL RESET
=========================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    font-family: 'Inter', sans-serif;
    background: #f5f7fb; /* Slightly more premium soft tone */
    color: #0f172a;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===========================
   FIXED NAVBAR OFFSET
=========================== */
.main-container {
    padding-top: 80px; /* 70px navbar + breathing space */
}

/* ===========================
   MODERN NAVBAR
=========================== */
.navbar {
    height: 70px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px) saturate(160%);
    -webkit-backdrop-filter: blur(8px) saturate(160%);
    border-bottom: 1px solid rgba(229, 231, 235, 0.6);
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);

    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;

    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.logo {
    height: 30px;
}

.brand {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #0f172a;
}

/* ===========================
   NAV RIGHT
=========================== */
.nav-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav-link {
    height: 36px;
    display: flex;
    align-items: center;
    font-size: 14px;
    font-weight: 600;
    color: #475569;
    text-decoration: none;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: #0f172a;
}

/* ===========================
   SIGNUP BUTTON (NAVBAR)
=========================== */
.navbar .btn-primary {
    height: 36px;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: center;

    background: #6366f1;
    color: #ffffff;

    font-size: 14px;
    font-weight: 600;

    border-radius: 999px;
    border: none;
    cursor: pointer;
    text-decoration: none;

    transition: all 0.2s ease;
}

.navbar .btn-primary:hover {
    background: #4f46e5;
    transform: translateY(-1px);
}

.navbar .btn-primary:focus,
.navbar .btn-primary:active {
    outline: none;
    text-decoration: none;
}

/* ===========================
   FOOTER
=========================== */
.footer {
    text-align: center;
    padding: 24px 16px;
    font-size: 13px;
    color: #94a3b8;
}

/* ===========================
   MESSAGES & ALERTS
=========================== */
.messages-container {
    position: fixed;
    top: 80px; /* adjusted with navbar */
    left: 50%;
    transform: translateX(-50%);
    z-index: 10001;
    width: 90%;
    max-width: 420px;
    pointer-events: none;
}

.alert {
    pointer-events: auto;
    padding: 14px 24px;
    border-radius: 10px;
    margin-bottom: 12px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
    border: 1px solid transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: toastSlideDown 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Success Toast */
.alert.success {
    background: #16a34a;
    color: #ffffff;
    border-color: #16a34a;
}

/* Error Toast */
.alert.error, .alert.danger {
    background: #fef2f2;
    color: #b91c1c;
    border-color: #fecaca;
}

@keyframes toastSlideDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===========================
   AUTH CARD & CONTAINER
=========================== */
.auth-container {
    padding-top: 100px;
    padding-bottom: 60px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    background: #f5f7fb;
    min-height: 100vh;
}

.auth-card {
    background: #ffffff;
    width: 100%;
    max-width: 580px;
    padding: 36px;
    border-radius: 14px;
    border: none;
    box-shadow: 0 10px 40px rgba(0,0,0,0.06);
}

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

/* ===========================
   FORM ELEMENTS
=========================== */
.auth-section {
    margin-bottom: 24px;
}

.auth-section-title {
    font-size: 11px;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
}

.auth-section-title::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #f1f5f9;
    margin-left: 12px;
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-group {
    flex: 1;
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}

.form-group input {
    width: 100%;
    height: 44px;
    padding: 0 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 15px;
    background: #ffffff;
    transition: all 0.2s ease;
    outline: none;
}

.form-group input:hover {
    border-color: #9ca3af;
}

.form-group input:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.input-hint {
    font-size: 12px;
    color: #64748b;
    margin-top: 6px;
    display: block;
}

/* ===========================
   PRIMARY BUTTON (FULL WIDTH)
=========================== */
.btn-primary.full-width {
    width: 100%;
    height: 48px;
    background: #6366f1;
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 12px;
}

.btn-primary.full-width:hover {
    background: #4f46e5;
    transform: translateY(-1px);
}
