/* ------------------------------------
   Global Layout
------------------------------------ */
body {
    margin: 0;
    padding: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: radial-gradient(circle at top, #1f2933 0, #0b1016 45%, #05070a 100%);
    color: #e5e7eb;
}

/* Centered landing container */
.main-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
}

/* Main card container */
.card {
    max-width: 720px;
    width: 100%;
    background: rgba(15, 23, 32, 0.92);
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    box-shadow: 0 22px 45px rgba(0, 0, 0, 0.65);
    padding: 32px 36px;
    backdrop-filter: blur(10px);
}

/* Logo */
.site-logo {
    width: 120px;
    height: auto;
    display: block;
    margin: 0 auto 18px auto;
}

/* Headings */
.card h1 {
    font-size: 2.2rem;
    margin: 0 0 8px 0;
    text-align: center;
    letter-spacing: 0.04em;
}

.card h2 {
    font-size: 1.2rem;
    margin: 0 0 18px 0;
    text-align: center;
    color: #9ca3af;
}

/* Text */
.card p {
    margin: 0 0 14px 0;
    line-height: 1.6;
    color: #d1d5db;
}

/* Link list */
.link-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
    justify-content: center;
}

.link-list a {
    text-decoration: none;
    color: #e5e7eb;
    background: rgba(31, 41, 55, 0.9);
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 0.9rem;
    border: 1px solid rgba(148, 163, 184, 0.6);
    transition: background 0.18s ease, transform 0.12s ease, box-shadow 0.18s ease;
}

.link-list a:hover {
    background: #2563eb;
    box-shadow: 0 10px 22px rgba(37, 99, 235, 0.45);
    transform: translateY(-1px);
}

/* Login Box */
#loginBox {
    margin-top: 28px;
    padding: 20px 22px;
    background: rgba(31, 41, 55, 0.55);
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 14px;
    box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.35);
    display: flex;
    flex-direction: column;
    align-items: center; /* centers inputs + buttons */
}

/* Login headings */
#loginBox h2, 
#loginBox h3 {
    text-align: center;
    margin-top: 0;
    margin-bottom: 14px;
    color: #e5e7eb;
}

/* Inputs — smaller + centered */
#loginBox input {
    width: 80%;            /* tighter, centered */
    padding: 10px 12px;
    margin-bottom: 12px;
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.4);
    background: rgba(15, 23, 32, 0.85);
    color: #e5e7eb;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}


/* Buttons — smaller + cleaner */
#loginBox button {
    width: 24%;            /* fits 3 buttons side-by-side */
    padding: 8px 12px;     /* slightly smaller */
    margin-top: 6px;
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.6);
    background: rgba(37, 99, 235, 0.9);
    color: #e5e7eb;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.18s ease, transform 0.12s ease, box-shadow 0.18s ease;
}


/* Button hover */
#loginBox button:hover {
    background: #2563eb;
    box-shadow: 0 10px 22px rgba(37, 99, 235, 0.45);
    transform: translateY(-1px);
}

/* Button row — ensures clean alignment */
#buttonRow {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 12px;
    width: 100%;
}



/* Error Messages */
.error {
    color: #d32f2f;
    font-size: 0.85rem;
    margin-top: 4px;
    display: none;
}

input.invalid {
    border: 2px solid #d32f2f;
}

/* Footer */
.footer {
    margin-top: 20px;
    font-size: 0.8rem;
    text-align: center;
    color: #6b7280;
}

/* Mobile tweaks */
@media (max-width: 640px) {
    .card {
        padding: 22px 18px;
        border-radius: 14px;
    }

    .card h1 {
        font-size: 1.6rem;
    }
}
