@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --rs-green-deep: var(--oubs-green-dark, #035a31);
    --rs-green: var(--oubs-green, #067a43);
    --rs-green-mid: var(--oubs-green-mid, #0f9a57);
    --rs-gold: #d4a31b;
    --rs-ink: #1a2332;
    --rs-muted: #6b7280;
}

html { scroll-behavior: smooth; }

body.auth-body,
body {
    margin: 0;
    min-height: 100vh;
    font-family: 'Poppins', system-ui, -apple-system, sans-serif;
    color: #fff;
    background: linear-gradient(170deg, var(--rs-green-mid) 0%, var(--rs-green) 45%, var(--rs-green-deep) 100%);
    -webkit-font-smoothing: antialiased;
}

.rs-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 2rem 1.5rem;
}

.rs-shell::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 0%, rgba(255, 255, 255, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 100%, rgba(15, 154, 87, 0.35) 0%, transparent 45%),
        radial-gradient(ellipse at 50% 50%, rgba(212, 163, 27, 0.10) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

.rs-shell::after {
    content: '';
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212, 163, 27, 0.10) 0%, transparent 70%);
    top: -200px;
    right: -200px;
    pointer-events: none;
    z-index: 0;
    animation: rs-float 12s ease-in-out infinite alternate;
}

@keyframes rs-float {
    0% { transform: translate(0, 0) scale(1); opacity: 0.5; }
    100% { transform: translate(-40px, 60px) scale(1.15); opacity: 0.8; }
}

.rs-content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 820px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.rs-logo-wrap { margin-bottom: 1rem; animation: rs-fadeDown 0.6s ease-out; }

.rs-logo {
    width: 126px;
    height: 126px;
    border-radius: 0;
    object-fit: contain; filter: drop-shadow(1px 0 0 #fff) drop-shadow(-1px 0 0 #fff) drop-shadow(0 1px 0 #fff) drop-shadow(0 -1px 0 #fff);
    background: transparent;
    padding: 0;
    box-shadow: none;
}

.rs-title {
    font-size: 2.8rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    margin: 0 0 0.4rem;
    text-shadow: 0 4px 20px rgba(0,0,0,0.2);
    animation: rs-fadeDown 0.6s ease-out 0.1s both;
}

.rs-subtitle {
    font-size: 0.82rem;
    font-weight: 600;
    color: rgba(255,255,255,0.7);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin: 0 0 2.5rem;
    animation: rs-fadeDown 0.6s ease-out 0.2s both;
}

.rs-label {
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--rs-gold);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 1.35rem;
    animation: rs-fadeUp 0.5s ease-out 0.3s both;
}

.rs-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 1rem;
    width: 100%;
    animation: rs-fadeUp 0.5s ease-out 0.4s both;
}

.rs-card {
    grid-column: span 2;
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 1.25rem 1.15rem;
    border-radius: 14px;
    background: #fff;
    border: 1px solid rgba(0,0,0,0.04);
    text-decoration: none;
    color: var(--rs-ink);
    box-shadow: 0 4px 16px rgba(0,0,0,0.08), 0 1px 3px rgba(0,0,0,0.05);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    cursor: pointer;
    text-align: left;
}

.rs-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 36px rgba(var(--oubs-green-dark-rgb, 3, 90, 49), 0.22), 0 4px 12px rgba(0,0,0,0.08);
    border-color: rgba(212, 163, 27, 0.45);
    color: var(--rs-ink);
    text-decoration: none;
}

.rs-icon {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rs-icon svg { width: 22px; height: 22px; }

.rs-icon--president       { background: rgba(212,163,27,0.14); color: #b8860b; }
.rs-icon--vp              { background: rgba(var(--oubs-green-rgb, 6, 122, 67),0.1);   color: var(--rs-green); }
.rs-icon--board-secretary { background: rgba(15,154,87,0.12); color: var(--rs-green-mid); }
.rs-icon--proponent       { background: rgba(var(--oubs-green-rgb, 6, 122, 67),0.1);   color: var(--rs-green); }
.rs-icon--legal           { background: rgba(124,58,237,0.1); color: #7c3aed; }
.rs-icon--accounting      { background: rgba(37,99,235,0.1);  color: #2563eb; }
.rs-icon--admin           { background: rgba(var(--oubs-green-dark-rgb, 3, 90, 49),0.1);    color: var(--rs-green-deep); }

.rs-info { min-width: 0; }

.rs-name {
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 0.2rem;
    color: var(--rs-ink);
}

.rs-desc {
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--rs-muted);
    line-height: 1.45;
    margin: 0;
}

.rs-footer {
    position: relative;
    z-index: 1;
    text-align: center;
    margin-top: 2.5rem;
    padding-bottom: 1.25rem;
    font-size: 0.8rem;
    font-weight: 500;
    color: rgba(255,255,255,0.5);
    animation: rs-fadeUp 0.5s ease-out 0.5s both;
}

.rs-admin-secret {
    display: block;
    position: absolute;
    left: 50%;
    top: calc(100% + 0.2rem);
    transform: translateX(-50%);
    width: 8.5rem;
    height: 1.25rem;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
    text-decoration: none;
}

.rs-admin-secret:hover,
.rs-admin-secret:focus,
.rs-admin-secret:focus-visible {
    opacity: 0;
    outline: none;
}

.rs-back {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.88rem;
    margin-bottom: 1.5rem;
    transition: color 0.2s ease;
    animation: rs-fadeDown 0.5s ease-out;
}

.rs-back:hover { color: #fff; }
.rs-back svg { width: 16px; height: 16px; }

@keyframes rs-fadeDown {
    from { opacity: 0; transform: translateY(-18px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes rs-fadeUp {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 767.98px) {
    .rs-grid { gap: 0.85rem; }
    .rs-title { font-size: 2.2rem; }
    .rs-subtitle { font-size: 0.72rem; }
    .rs-logo { width: 100.8px; height: 100.8px; }
    .rs-card { padding: 1rem 0.95rem; }
    .rs-icon { width: 36px; height: 36px; border-radius: 8px; }
    .rs-icon svg { width: 18px; height: 18px; }
    .rs-name { font-size: 0.85rem; }
    .rs-desc { font-size: 0.72rem; }
}

@media (max-width: 479.98px) {
    .rs-grid { grid-template-columns: 1fr; }
    .rs-card { grid-column: auto; }
    .rs-shell { padding: 2rem 1rem; }
    .rs-title { font-size: 1.8rem; }
    .rs-logo { width: 89.6px; height: 89.6px; }
}

@media (min-width: 480px) and (max-width: 767.98px) {
    .rs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .rs-card { grid-column: auto; }
}
