*{
    box-sizing:border-box;
}

body{
    margin:0;
    font-family:'Segoe UI',sans-serif;
    background: linear-gradient(135deg, #132c7a 0%, #0f4c9c 55%, #0b7db8 100%);
    min-height:100vh;
    color:#0f172a;
}

.auth-wrap{
    min-height:100vh;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:24px;
}

.login-box{
    width:100%;
    max-width:430px;
    background:rgba(255,255,255,0.92);
    padding:42px 28px 24px;
    border-radius:28px;
    box-shadow:0 30px 70px rgba(0,0,0,.22);
    text-align:center;
    backdrop-filter:blur(8px);
}

.logo{
    width:300px;
    height:auto;
    display:block;
    margin:0 auto 26px;
    padding:10px 14px;
    background:#ffffff;
    border-radius:18px;
    box-shadow:0 12px 28px rgba(15,23,42,.12);
    transition:.25s ease;
}

.logo:hover{
    transform:scale(1.03);
}

.title{
    font-size:24px;
    font-weight:800;
    color:#0f172a;
    margin:0 0 10px;
    line-height:1.32;
    letter-spacing:-0.2px;
}

.subtitle{
    color:#64748b;
    font-size:14px;
    line-height:1.55;
    margin:0 0 22px;
}

input,
textarea,
select{
    width:100%;
    padding:14px 16px;
    margin:8px 0;
    border-radius:14px;
    border:1px solid #d7e0ee;
    background:#eef2f7;
    outline:none;
    font-size:14px;
    color:#0f172a;
    transition:.2s ease;
}

input:focus,
textarea:focus,
select:focus{
    background:#ffffff;
    border-color:#3b82f6;
    box-shadow:0 0 0 4px rgba(59,130,246,.12);
}

button,
.btn{
    display:inline-block;
    width:100%;
    padding:14px 16px;
    margin-top:8px;
    border:none;
    border-radius:14px;
    background:linear-gradient(90deg,#2563eb,#06b6d4);
    color:#fff;
    font-weight:700;
    font-size:15px;
    cursor:pointer;
    text-decoration:none;
    text-align:center;
    transition:.22s ease;
}

button:hover,
.btn:hover{
    transform:translateY(-2px);
    box-shadow:0 12px 24px rgba(37,99,235,.24);
}

.link{
    margin-top:14px;
    display:block;
    color:#475569;
    text-decoration:none;
    font-size:14px;
    transition:.2s ease;
}

.link:hover{
    color:#2563eb;
}

.error{
    background:#fee2e2;
    color:#b91c1c;
    padding:10px 12px;
    border-radius:12px;
    margin-bottom:14px;
    font-size:14px;
}

.topbar{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:12px;
    padding:18px 22px;
    background:rgba(255,255,255,0.92);
    backdrop-filter:blur(10px);
    position:sticky;
    top:0;
    z-index:20;
    box-shadow:0 8px 20px rgba(0,0,0,.06);
}

.brand{
    display:flex;
    align-items:center;
    gap:12px;
}

.brand img{
    width:60px;
    height:60px;
    object-fit:contain;
    border-radius:14px;
    background:#fff;
    padding:4px;
    box-shadow:0 8px 18px rgba(15,23,42,.10);
}

.brand-text h2{
    margin:0;
    font-size:18px;
    color:#0f172a;
}

.brand-text p{
    margin:2px 0 0;
    color:#64748b;
    font-size:13px;
}

.logout-btn{
    background:#ef4444;
    color:#fff;
    padding:10px 14px;
    border-radius:12px;
    text-decoration:none;
    font-weight:700;
    white-space:nowrap;
}

.container{
    max-width:1180px;
    margin:0 auto;
    padding:22px;
}

.hero-card{
    background:rgba(255,255,255,0.95);
    border-radius:28px;
    padding:24px;
    box-shadow:0 18px 40px rgba(0,0,0,.10);
    margin-bottom:22px;
}

.hero-title{
    font-size:28px;
    font-weight:800;
    color:#0f172a;
    margin-bottom:8px;
}

.hero-sub{
    color:#64748b;
    line-height:1.6;
}

.status-pill{
    display:inline-block;
    padding:8px 14px;
    border-radius:999px;
    font-size:13px;
    font-weight:700;
    margin-top:14px;
}

.paid{
    background:#dcfce7;
    color:#166534;
}

.unpaid{
    background:#fef3c7;
    color:#92400e;
}

.grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
    gap:20px;
}

.card{
    background:rgba(255,255,255,0.97);
    border-radius:24px;
    padding:20px;
    box-shadow:0 14px 30px rgba(0,0,0,.08);
    display:flex;
    flex-direction:column;
    gap:12px;
}

.speaker{
    font-size:14px;
    color:#2563eb;
    font-weight:700;
}

.topic{
    font-size:20px;
    font-weight:800;
    color:#0f172a;
    line-height:1.35;
}

.schedule{
    color:#475569;
    font-size:14px;
    background:#eff6ff;
    padding:10px 12px;
    border-radius:12px;
}

.desc{
    color:#64748b;
    font-size:14px;
    line-height:1.55;
    min-height:42px;
}

.lock-box{
    margin-top:auto;
    padding:12px;
    border-radius:14px;
    background:#fff7ed;
    color:#9a3412;
    font-size:13px;
    font-weight:600;
}

.view-btn{
    margin-top:auto;
}

.viewer-wrap{
    max-width:1100px;
    margin:24px auto;
    padding:0 20px 30px;
}

.viewer-card{
    background:#fff;
    border-radius:24px;
    padding:18px;
    box-shadow:0 18px 40px rgba(0,0,0,.10);
}

.pdf-frame{
    width:100%;
    height:78vh;
    border:none;
    border-radius:16px;
    background:#f8fafc;
}

.back-link{
    display:inline-block;
    margin-bottom:14px;
    text-decoration:none;
    color:#2563eb;
    font-weight:700;
}

.table-wrap{
    background:#fff;
    border-radius:24px;
    padding:18px;
    box-shadow:0 18px 40px rgba(0,0,0,.10);
}

table{
    width:100%;
    border-collapse:collapse;
}

th,
td{
    padding:12px;
    border-bottom:1px solid #e2e8f0;
    text-align:left;
    font-size:14px;
}

th{
    color:#334155;
    background:#f8fafc;
}

.small-btn{
    display:inline-block;
    width:auto;
    padding:9px 12px;
    border-radius:10px;
    text-decoration:none;
    font-size:13px;
    font-weight:700;
    color:#fff;
    background:#16a34a;
}
.cancel-btn{
    display:inline-block;
    padding:8px 12px;
    background:#ef4444;
    color:#fff;
    border-radius:8px;
    text-decoration:none;
    font-size:13px;
    margin-left:6px;
}
.cancel-btn:hover{
    background:#dc2626;
}

@media (max-width:768px){
    .auth-wrap{
        padding:18px;
    }

    .login-box{
        max-width:100%;
        padding:34px 20px 22px;
        border-radius:24px;
    }

    .logo{
        width:300px;
        margin:0 auto 22px;
    }

    .title{
        font-size:22px;
    }

    .subtitle{
        font-size:13px;
        margin-bottom:18px;
    }

    .topbar{
        padding:14px;
        align-items:flex-start;
        flex-direction:column;
    }

    .brand{
        width:100%;
    }

    .brand img{
        width:54px;
        height:54px;
    }

    .brand-text h2{
        font-size:16px;
    }

    .brand-text p{
        font-size:12px;
    }

    .logout-btn{
        width:100%;
        text-align:center;
        margin-top:8px;
    }

    .container{
        padding:16px;
    }

    .hero-card{
        padding:18px;
        border-radius:22px;
    }

    .hero-title{
        font-size:22px;
        line-height:1.35;
    }

    .hero-sub{
        font-size:14px;
    }

    .grid{
        grid-template-columns:1fr;
        gap:16px;
    }

    .card{
        padding:18px;
        border-radius:20px;
    }

    .topic{
        font-size:18px;
        line-height:1.4;
    }

    .schedule,
    .desc,
    .speaker{
        font-size:13px;
    }

    .btn,
    button{
        padding:13px 14px;
        font-size:14px;
    }

    .pdf-frame{
        height:70vh;
    }

    .table-wrap{
        overflow-x:auto;
    }

    table{
        min-width:700px;
    }
}