/* ----------------------------------------------------
   GLOBAL VARIABLES
-----------------------------------------------------*/
:root {
    --glass-bg: rgba(255, 255, 255, 0.18);
    --glass-border: rgba(255, 255, 255, 0.32);
    --accent: #ff4f8f;
    --accent2: #ff8ac8;
    --text-dark: #2a2a2a;
    --pastel-bg: linear-gradient(145deg, #ffd4eb, #ffe9f5);
}

/* ----------------------------------------------------
   RESET & GLOBAL
-----------------------------------------------------*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Inter", system-ui;
    background: var(--pastel-bg);
    color: var(--text-dark);
    padding: 0;
    margin: 0;
}

/* ----------------------------------------------------
   CENTER HELPERS
-----------------------------------------------------*/
.center-page {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ----------------------------------------------------
   GLASS BOX (login + panel)
-----------------------------------------------------*/
.glass-box {
    background: var(--glass-bg);
    backdrop-filter: blur(14px);
    border: 1.5px solid var(--glass-border);
    border-radius: 26px;
    padding: 32px;
    width: 100%;
    max-width: 480px;
    box-shadow: 0 0 35px rgba(255, 100, 160, 0.22);
    animation: fadeIn 0.8s ease forwards;
}

@keyframes fadeIn {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* ----------------------------------------------------
   FORM ELEMENTS (GLOBAL)
-----------------------------------------------------*/
.input-group {
    margin-bottom: 20px;
}

.input-group label {
    font-size: 1rem;
    font-weight: 700;
    color: #ff4f8f;
    margin-bottom: 8px;
    display: block;
}

.input-group input,
.input-group textarea {
    width: 100%;
    padding: 14px 16px;
    border-radius: 14px;
    border: 2px solid #ffcde4;
    background: #ffffffd5;
    font-size: 1rem;
    transition: 0.22s;
}

.input-group input:focus,
.input-group textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 12px rgba(255, 80, 150, 0.35);
}

/* ----------------------------------------------------
   CHECKBOX
-----------------------------------------------------*/
.check-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 4px 0 20px 0;
}

.check-row input {
    width: 22px;
    height: 22px;
    accent-color: var(--accent);
}

.check-row label {
    font-size: 1rem;
    font-weight: 600;
    color: #ff4f8f;
    line-height: 1.4;
}

/* ----------------------------------------------------
   BUTTONS
-----------------------------------------------------*/
.btn {
    width: 100%;
    max-width: 360px;
    padding: 14px;
    margin: 0 auto;
    display: block;
    border: none;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    font-size: 1.15rem;
    font-weight: 700;
    color: white;
    cursor: pointer;
    box-shadow: 0 5px 22px rgba(255, 100, 160, 0.35);
    transition: 0.25s;
}

.btn:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 35px rgba(255, 100, 160, 0.55);
}

/* ----------------------------------------------------
   TITLES
-----------------------------------------------------*/
.title {
    text-align: center;
    margin-bottom: 20px;
    font-size: 2rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ----------------------------------------------------
   ERROR BOX
-----------------------------------------------------*/
.error {
    color: #ff3f6e;
    font-weight: 600;
    margin-top: 14px;
    text-align: center;
    opacity: 0;
    transition: 0.3s;
}
.error.show {
    opacity: 1;
}

/* ----------------------------------------------------
   PANEL TABLE
-----------------------------------------------------*/
.panel-box {
    max-width: 1080px;
    margin: auto;
    padding: 30px;
    background: var(--glass-bg);
    backdrop-filter: blur(14px);
    border: 1.5px solid var(--glass-border);
    border-radius: 26px;
    box-shadow: 0 0 30px rgba(255, 100, 160, 0.2);
}

table {
    width: 100%;
    border-collapse: collapse;
    border-radius: 18px;
    overflow: hidden;
}

th {
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    color: white;
    padding: 14px;
    font-weight: 700;
    font-size: 0.95rem;
    text-align: left;
}

td {
    padding: 12px;
    background: rgba(255, 255, 255, 0.65);
    border-bottom: 1px solid rgba(255, 150, 200, 0.35);
    font-size: 0.95rem;
}

tr:hover td {
    background: rgba(255, 210, 235, 0.9);
    cursor: pointer;
    transition: 0.25s;
}

/* ----------------------------------------------------
   LOGOUT BUTTON
-----------------------------------------------------*/
.logout-btn {
    margin-top: 25px;
    display: inline-block;
    padding: 12px 26px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    color: white !important;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 5px 18px rgba(255, 120, 170, 0.4);
    transition: 0.25s;
}

.logout-btn:hover {
    transform: scale(1.07);
    box-shadow: 0 8px 30px rgba(255, 120, 170, 0.6);
}

/* ----------------------------------------------------
   SECRET LOGIN BUTTON
-----------------------------------------------------*/
.secret-login {
  position: fixed;
  top: 16px;
  right: 16px;
  width: 60px;
  height: 60px;
  opacity: 0;
  cursor: pointer;
  z-index: 9999;
}

/* ----------------------------------------------------
   INDEX FORM OVERRIDES
-----------------------------------------------------*/
#form-wrapper {
    max-width: 460px !important;
}
