.code-empty {
    color: #94a3b8;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    min-height: 100vh;
}

.auth-page {
    min-height: 100vh;
    background: #0f172a;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
}

.auth-shell {
    width: 100%;
    max-width: 1050px;
    min-height: 650px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: #fff;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.35);
}

.brand-panel {
    background: linear-gradient(
        135deg,
        #2563eb,
        #4f46e5,
        #7c3aed
    );
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.brand-mark {
    width: 65px;
    height: 65px;
    border-radius: 18px;
    background: rgba(255,255,255,.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 30px;
}

.eyebrow {
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 3px;
    margin-bottom: 15px;
    opacity: .8;
}

.brand-panel h1 {
    font-size: 42px;
    line-height: 1.15;
    margin-bottom: 20px;
}

.brand-panel p {
    font-size: 17px;
    line-height: 1.7;
    opacity: .9;
}

.trust {
    margin-top: 35px;
    padding: 15px;
    background: rgba(255,255,255,.12);
    border-radius: 12px;
}

.auth-card {
    color: #111827;
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.mobile-brand {
    display: none;
}

.auth-card h2 {
    font-size: 36px;
    margin-bottom: 10px;
}

.muted {
    color: #6b7280;
    margin-bottom: 30px;
}

form label {
    display: block;
    margin-bottom: 20px;
    font-weight: 600;
}

input {
    width: 100%;
    margin-top: 8px;
    padding: 15px;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    font-size: 16px;
    outline: none;
    transition: .2s;
}

input:focus {
    border-color: #4f46e5;
    box-shadow: 0 0 0 4px rgba(79,70,229,.12);
}

.password-wrapper {
    position: relative;
}

.password-wrapper input {
    padding-right: 55px;
}

.show-password {
    position: absolute;
    right: 10px;
    top: 15px;
    border: 0;
    background: transparent;
    cursor: pointer;
    font-size: 20px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 0;
    border-radius: 12px;
    padding: 15px 20px;
    text-decoration: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
}

.btn.primary {
    width: 100%;
    background: #4f46e5;
    color: white;
    transition: .2s;
}

.btn.primary:hover {
    background: #3730a3;
    transform: translateY(-2px);
}

.alert {
    padding: 14px;
    border-radius: 10px;
    background: #dcfce7;
    color: #166534;
    margin-bottom: 20px;
}

.alert.error {
    background: #fee2e2;
    color: #991b1b;
}

.hint {
    margin-top: 25px;
    font-size: 13px;
    color: #6b7280;
    line-height: 1.6;
}

.admin-link {
    margin-top: 25px;
    text-align: center;
    color: #4f46e5;
    text-decoration: none;
    font-weight: bold;
}

.admin-link:hover {
    text-decoration: underline;
}


/* PAGE FELICITATIONS */

.success-page {
    min-height: 100vh;
    background: linear-gradient(
        135deg,
        #0f172a,
        #1e1b4b,
        #312e81
    );
    color: white;
}

.topbar {
    height: 75px;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0,0,0,.2);
}

.topbrand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: bold;
    letter-spacing: 2px;
}

.brand-dot {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #4f46e5;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logout {
    color: white;
    text-decoration: none;
    padding: 10px 18px;
    border: 1px solid rgba(255,255,255,.3);
    border-radius: 10px;
}

.success-card {
    width: 90%;
    max-width: 650px;
    margin: 80px auto;
    padding: 55px;
    text-align: center;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 25px;
    backdrop-filter: blur(15px);
}

.check {
    width: 85px;
    height: 85px;
    margin: 0 auto 25px;
    border-radius: 50%;
    background: #22c55e;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 45px;
    font-weight: bold;
}

.success-card h1 {
    font-size: 42px;
    margin: 15px 0;
}

.success-card p {
    color: rgba(255,255,255,.8);
    margin-bottom: 15px;
}

.code-box {
    margin-top: 30px;
    padding: 25px;
    border-radius: 18px;
    background: rgba(0,0,0,.2);
    text-align: left;
}

.code-box label {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
}

.code-input {
    position: relative;
}

.code-input input {
    background: white;
    color: #111827;
    padding-right: 55px;
}

.eye-btn {
    position: absolute;
    right: 10px;
    top: 18px;
    border: 0;
    background: transparent;
    cursor: pointer;
    font-size: 20px;
}

.code-btn {
    margin-top: 15px;
}

.success-actions {
    margin-top: 25px;
}


/* ADMIN */

.dashboard {
    background: #f1f5f9;
    color: #111827;
}

.dash-header {
    background: #0f172a;
    color: white;
    min-height: 75px;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.admin-user {
    display: flex;
    align-items: center;
    gap: 15px;
}

.admin-user a {
    color: white;
    text-decoration: none;
}

.dash-main {
    width: 95%;
    max-width: 1400px;
    margin: 40px auto;
}

.dash-main h1 {
    font-size: 38px;
    margin-bottom: 10px;
}

.stats {
    display: grid;
    grid-template-columns: repeat(2, 250px);
    gap: 20px;
    margin: 30px 0;
}

.stat {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,.06);
}

.stat span {
    display: block;
    color: #64748b;
}

.stat strong {
    display: block;
    margin-top: 10px;
    font-size: 32px;
}

.table-card {
    background: white;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,.06);
}

.table-head {
    padding: 25px;
    display: flex;
    justify-content: space-between;
}

.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 15px;
    border-top: 1px solid #e5e7eb;
    text-align: left;
    white-space: nowrap;
}

th {
    background: #f8fafc;
}

.code-protected {
    padding: 6px 10px;
    border-radius: 8px;
    background: #dcfce7;
    color: #166534;
}

.code-empty {
    color: #94a3b8;
}

.privacy-note {
    margin-top: 20px;
    color: #64748b;
}


/* MOBILE */

@media (max-width: 800px) {

    .auth-page {
        padding: 15px;
    }

    .auth-shell {
        grid-template-columns: 1fr;
    }

    .brand-panel {
        display: none;
    }

    .auth-card {
        padding: 35px 25px;
    }

    .mobile-brand {
        display: block;
        font-weight: bold;
        letter-spacing: 3px;
        color: #4f46e5;
        margin-bottom: 30px;
    }

    .stats {
        grid-template-columns: 1fr;
    }

    .dash-header {
        padding: 15px;
        flex-direction: column;
        gap: 15px;
    }

    .admin-user {
        font-size: 13px;
    }

    .success-card {
        padding: 35px 20px;
        margin-top: 40px;
    }

    .success-card h1 {
        font-size: 32px;
    }
}
.secret-code {
    display: inline-block;
    padding: 8px 12px;
    border-radius: 8px;
    background: #eef2ff;
    color: #3730a3;
    font-family: monospace;
    font-size: 15px;
    font-weight: bold;
    letter-spacing: 1px;
}