:root {
    --primary: #FF6F00;      /* deep orange / saffron */
    --primary-dark: #E65100;
    --bg-light: #FFF8F0;
    --text: #2b2b2b;
    --success: #2e7d32;
    --error: #c62828;
    --info: #1565c0;
}

* { box-sizing: border-box; }

body {
    font-family: 'Segoe UI', Roboto, Arial, sans-serif;
    background: var(--bg-light);
    color: var(--text);
    margin: 0;
}

.site-header {
    background: var(--primary);
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 24px;
    flex-wrap: wrap;
}

.brand { display: flex; align-items: center; gap: 10px; }
.site-logo { height: 40px; }
.site-name { font-size: 1.4rem; font-weight: 700; }

.main-nav a {
    color: #fff;
    text-decoration: none;
    margin-left: 16px;
    font-weight: 500;
}
.main-nav a:hover { text-decoration: underline; }

.site-main { max-width: 960px; margin: 24px auto; padding: 0 16px; }

form label {
    display: block;
    margin-bottom: 14px;
    font-weight: 600;
}
form input, form textarea, form select {
    display: block;
    width: 100%;
    padding: 10px;
    margin-top: 4px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
}

button, .btn {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: background .2s;
}
button:hover, .btn:hover { background: var(--primary-dark); }

.alert { padding: 12px 16px; border-radius: 6px; margin-bottom: 16px; }
.alert-error   { background: #ffebee; color: var(--error); border: 1px solid var(--error); }
.alert-success { background: #e8f5e9; color: var(--success); border: 1px solid var(--success); }
.alert-info    { background: #e3f2fd; color: var(--info); border: 1px solid var(--info); }

.badge { padding: 3px 10px; border-radius: 10px; font-size: .78rem; font-weight: 600; }
.badge-on  { background:#e8f5e9; color:#2e7d32; }
.badge-off { background:#ffebee; color:#c62828; }

.site-footer {
    text-align: center;
    padding: 16px;
    color: #777;
    font-size: .9rem;
}

/* ============================================================
   AUTH PAGES (login/register) — modern, animated, gradient look
   ============================================================ */
.auth-page {
    min-height: 100vh;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #FF6F00 0%, #FF8F00 35%, #E65100 100%);
    font-family: 'Segoe UI', Roboto, Arial, sans-serif;
}

/* soft floating blobs for a premium animated feel */
.auth-page::before, .auth-page::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,0.12);
    filter: blur(2px);
    animation: floatBlob 9s ease-in-out infinite;
}
.auth-page::before { width: 320px; height: 320px; top: -80px; left: -80px; }
.auth-page::after   { width: 260px; height: 260px; bottom: -60px; right: -60px; animation-delay: 2.5s; }

@keyframes floatBlob {
    0%, 100% { transform: translateY(0) scale(1); }
    50%      { transform: translateY(30px) scale(1.06); }
}

.auth-card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 400px;
    margin: 24px;
    background: rgba(255,255,255,0.97);
    border-radius: 18px;
    padding: 36px 32px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.25);
    animation: cardRise .6s cubic-bezier(.2,.8,.2,1);
}

@keyframes cardRise {
    0%   { opacity: 0; transform: translateY(24px) scale(.98); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

.auth-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-bottom: 22px;
}
.auth-brand img { height: 52px; }
.auth-brand .auth-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--primary-dark);
    letter-spacing: .2px;
}
.auth-brand .auth-subtitle { font-size: .85rem; color: #888; }

.auth-card form label { font-size: .85rem; color: #444; margin-bottom: 12px; }
.auth-card form input,
.auth-card form textarea {
    border: 1.5px solid #eee;
    background: #FAFAFA;
    padding: 12px 14px;
    border-radius: 10px;
    transition: border-color .2s, box-shadow .2s;
}
.auth-card form input:focus,
.auth-card form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255,111,0,0.15);
}

/* show/hide password toggle */
.password-field { position: relative; }
.password-field input { padding-right: 44px !important; }
.password-toggle-btn {
    position: absolute;
    right: 10px;
    top: 38px;
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: #888;
    font-size: 1.1rem;
    line-height: 1;
}
.password-toggle-btn:hover { background: none; color: var(--primary); }

.auth-card button[type=submit] {
    width: 100%;
    margin-top: 8px;
    padding: 13px;
    font-weight: 700;
    font-size: 1rem;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    box-shadow: 0 8px 20px rgba(255,111,0,0.35);
    transition: transform .15s, box-shadow .15s;
}
.auth-card button[type=submit]:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(255,111,0,0.45);
}
.auth-card button[type=submit]:active { transform: translateY(0); }

.auth-links {
    text-align: center;
    margin-top: 18px;
    font-size: .9rem;
    color: #666;
}
.auth-links a { color: var(--primary-dark); font-weight: 600; text-decoration: none; }
.auth-links a:hover { text-decoration: underline; }

.auth-card .alert { font-size: .88rem; }

