*{
    box-sizing: border-box;
}

:root{
    --bg: #f3f7fd;
    --bg-soft: #eaf2ff;
    --white: #ffffff;
    --text: #0f172a;
    --muted: #64748b;
    --line: #dbe7f5;
    --primary: #2563eb;
    --primary-2: #1d4ed8;
    --primary-3: #1e40af;
    --primary-soft: #dbeafe;
    --success: #16a34a;
    --danger: #dc2626;
    --shadow-lg: 0 30px 70px rgba(15, 23, 42, 0.14);
    --shadow-md: 0 16px 40px rgba(15, 23, 42, 0.10);
    --shadow-sm: 0 10px 24px rgba(15, 23, 42, 0.08);
    --radius-xl: 32px;
    --radius-lg: 24px;
    --radius-md: 18px;
    --radius-sm: 14px;
    --container: 1200px;
}

html{
    scroll-behavior: smooth;
}

body{
    margin: 0;
    font-family: "Segoe UI", Tahoma, Arial, sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(37,99,235,.08), transparent 28%),
        radial-gradient(circle at bottom right, rgba(59,130,246,.08), transparent 26%),
        linear-gradient(180deg, #f8fbff 0%, #f3f7fd 100%);
    line-height: 1.6;
}

a{
    color: inherit;
    text-decoration: none;
}

img{
    max-width: 100%;
    display: block;
}

.container{
    width: min(var(--container), calc(100% - 32px));
    margin: 0 auto;
}

/* landing */
.landing-page{
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 28px 0;
}

.landing-grid{
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 28px;
    align-items: stretch;
}

.hero-panel{
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-xl);
    padding: 42px;
    color: #fff;
    background:
        linear-gradient(135deg, rgba(37,99,235,.98) 0%, rgba(29,78,216,.98) 50%, rgba(30,64,175,.98) 100%);
    box-shadow: var(--shadow-lg);
}

.hero-panel::before{
    content: "";
    position: absolute;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    top: -100px;
    right: -100px;
    background: rgba(255,255,255,.10);
}

.hero-panel::after{
    content: "";
    position: absolute;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    left: -80px;
    bottom: -80px;
    background: rgba(255,255,255,.08);
}

.hero-inner{
    position: relative;
    z-index: 1;
}

.eyebrow{
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255,255,255,.14);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .8px;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.hero-title{
    margin: 0 0 14px;
    font-size: 46px;
    line-height: 1.14;
    font-weight: 900;
    letter-spacing: -.8px;
}

.hero-desc{
    margin: 0;
    max-width: 760px;
    font-size: 17px;
    color: rgba(255,255,255,.92);
}

.feature-list{
    margin-top: 28px;
    display: grid;
    gap: 16px;
}

.feature-item{
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 18px;
    border-radius: 22px;
    background: rgba(255,255,255,.10);
    border: 1px solid rgba(255,255,255,.10);
    backdrop-filter: blur(6px);
}

.feature-no{
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    border-radius: 14px;
    background: rgba(255,255,255,.18);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 16px;
}

.feature-body h3{
    margin: 0 0 6px;
    font-size: 19px;
    font-weight: 800;
}

.feature-body p{
    margin: 0;
    color: rgba(255,255,255,.88);
    font-size: 14px;
}

.side-card{
    background: rgba(255,255,255,.95);
    border: 1px solid rgba(255,255,255,.98);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    padding: 34px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.side-card h2{
    margin: 0 0 10px;
    font-size: 34px;
    line-height: 1.2;
    font-weight: 900;
}

.side-card .sub{
    margin: 0 0 22px;
    color: var(--muted);
    font-size: 15px;
}

.info-boxes{
    display: grid;
    gap: 12px;
    margin-bottom: 24px;
}

.info-box{
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
    padding: 14px 16px;
    border-radius: 18px;
    background: #f8fbff;
    border: 1px solid #e5edf7;
}

.info-box strong{
    font-size: 14px;
}

.info-box span{
    color: var(--muted);
    font-size: 14px;
    text-align: right;
}

.actions{
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0 20px;
    border-radius: 14px;
    border: none;
    cursor: pointer;
    font-size: 15px;
    font-weight: 800;
    transition: .25s ease;
    text-decoration: none;
}

.btn:hover{
    transform: translateY(-1px);
}

.btn-primary{
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    box-shadow: 0 14px 30px rgba(37,99,235,.24);
}

.btn-primary:hover{
    box-shadow: 0 18px 34px rgba(37,99,235,.30);
}

.btn-light{
    color: var(--text);
    background: #fff;
    border: 1px solid var(--line);
}

.portal-note{
    margin-top: 18px;
    color: var(--muted);
    font-size: 13px;
    text-align: center;
}

/* login */
.login-page{
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 28px 0;
}

.login-layout{
    display: grid;
    grid-template-columns: 1fr 460px;
    gap: 28px;
    align-items: stretch;
}

.login-banner{
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-xl);
    padding: 42px;
    color: #fff;
    background: linear-gradient(135deg, #0f172a 0%, #1d4ed8 55%, #2563eb 100%);
    box-shadow: var(--shadow-lg);
}

.login-banner::before{
    content: "";
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    right: -100px;
    top: -90px;
    background: rgba(255,255,255,.10);
}

.login-banner::after{
    content: "";
    position: absolute;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    left: -70px;
    bottom: -70px;
    background: rgba(255,255,255,.08);
}

.login-banner-inner{
    position: relative;
    z-index: 1;
}

.login-banner h1{
    margin: 0 0 14px;
    font-size: 40px;
    line-height: 1.15;
    font-weight: 900;
}

.login-banner p{
    margin: 0;
    color: rgba(255,255,255,.9);
    font-size: 16px;
}

.login-points{
    margin-top: 26px;
    display: grid;
    gap: 14px;
}

.login-point{
    padding: 16px 18px;
    border-radius: 18px;
    background: rgba(255,255,255,.10);
    border: 1px solid rgba(255,255,255,.10);
}

.login-box{
    background: rgba(255,255,255,.97);
    border: 1px solid rgba(255,255,255,.98);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    padding: 34px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-head{
    margin-bottom: 18px;
}

.login-head h2{
    margin: 0 0 8px;
    font-size: 32px;
    font-weight: 900;
}

.login-head p{
    margin: 0;
    color: var(--muted);
}

.form-group{
    margin-bottom: 18px;
}

.form-label{
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
}

.form-control,
input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"],
textarea,
select{
    width: 100%;
    padding: 13px 14px;
    border-radius: 14px;
    border: 1px solid #dbe4ef;
    background: #fff;
    font-size: 15px;
    color: var(--text);
    outline: none;
    transition: .2s ease;
}

.form-control:focus,
input:focus,
textarea:focus,
select:focus{
    border-color: #93c5fd;
    box-shadow: 0 0 0 4px rgba(37,99,235,.12);
}

.alert{
    padding: 14px 16px;
    border-radius: 14px;
    margin-bottom: 16px;
    font-weight: 600;
    border: 1px solid transparent;
}

.alert-danger{
    background: #fef2f2;
    color: #991b1b;
    border-color: #fecaca;
}

/* admin */
.wrapper{
    display: flex;
    min-height: 100vh;
}

.sidebar{
    width: 280px;
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
    color: #fff;
    padding: 20px 16px;
    box-shadow: 10px 0 30px rgba(15,23,42,.12);
}

.brand{
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 8px 10px 20px;
    margin-bottom: 8px;
}

.brand-logo{
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    font-weight: 900;
}

.brand-text h1{
    margin: 0;
    font-size: 20px;
    line-height: 1.2;
    font-weight: 800;
}

.brand-text p{
    margin: 4px 0 0;
    color: rgba(255,255,255,.65);
    font-size: 13px;
}

.sidebar-title{
    padding: 10px 12px;
    color: rgba(255,255,255,.45);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sidebar-menu{
    list-style: none;
    margin: 0;
    padding: 0;
}

.sidebar-menu li{
    margin-bottom: 6px;
}

.sidebar-menu a{
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    color: rgba(255,255,255,.86);
    border-radius: 14px;
    font-weight: 700;
    transition: .2s ease;
}

.sidebar-menu a:hover,
.sidebar-menu a.active{
    background: rgba(255,255,255,.10);
    color: #fff;
}

.sidebar-menu .icon{
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: rgba(255,255,255,.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.sidebar-user{
    margin-top: 18px;
    padding: 16px;
    border-radius: 18px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.06);
}

.sidebar-user strong{
    display: block;
    margin-bottom: 4px;
}

.sidebar-user span{
    font-size: 13px;
    color: rgba(255,255,255,.68);
}

.content{
    flex: 1;
    min-width: 0;
    padding: 24px;
}

.topbar{
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    padding: 18px 22px;
    background: rgba(255,255,255,.84);
    border: 1px solid rgba(255,255,255,.9);
    border-radius: 22px;
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(10px);
}

.topbar h2{
    margin: 0;
    font-size: 24px;
    font-weight: 900;
}

.topbar p{
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 14px;
}

.userbox{
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar{
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: linear-gradient(135deg, #60a5fa, #2563eb);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 900;
}

.user-meta strong{
    display: block;
    font-size: 15px;
}

.user-meta span{
    color: var(--muted);
    font-size: 13px;
}

.footer-bar{
    margin-top: 24px;
    text-align: center;
    color: var(--muted);
    font-size: 13px;
}

/* utilities */
.text-center{
    text-align: center;
}

@media (max-width: 1100px){
    .landing-grid,
    .login-layout{
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px){
    .wrapper{
        flex-direction: column;
    }

    .sidebar{
        width: 100%;
    }

    .content{
        padding: 18px;
    }

    .topbar{
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 768px){
    .hero-panel,
    .side-card,
    .login-banner,
    .login-box{
        padding: 24px;
        border-radius: 24px;
    }

    .hero-title{
        font-size: 32px;
    }

    .login-banner h1{
        font-size: 30px;
    }

    .topbar h2{
        font-size: 21px;
    }
}