/* ==========================================================
   PORTAL INFORMASI DAN PENGUMUMAN SISWA
   LANDING PAGE
   Version : 1.0
========================================================== */


/* ==========================================================
   HEADER
========================================================== */

.portal-header{

    position:sticky;

    top:0;

    z-index:1000;

    background:#ffffff;

    border-bottom:1px solid var(--border);

    backdrop-filter:blur(10px);

}

.portal-header-wrapper{

    display:flex;

    align-items:center;

    justify-content:space-between;

    min-height:90px;

}

.portal-brand{

    display:flex;

    align-items:center;

    gap:18px;

    color:inherit;

}

.portal-brand:hover{

    color:inherit;

}

.portal-logo{

    width:68px;

    height:68px;

    object-fit:contain;

}

.portal-brand-text{

    display:flex;

    flex-direction:column;

}

.portal-school-name{

    margin:0;

    font-size:30px;

    font-weight:700;

    color:var(--primary-dark);

    line-height:1.2;

}

.portal-school-subtitle{

    margin-top:4px;

    margin-bottom:0;

    color:var(--gray);

    font-size:15px;

}


/* ==========================================================
   MAIN
========================================================== */

.portal-main{

    padding:45px 0 60px;

}


/* ==========================================================
   HERO
========================================================== */

.hero-card{

    position:relative;

    overflow:hidden;

    border-radius:28px;

    min-height:760px;

    box-shadow:var(--shadow-lg);

}

.hero-image{

    position:absolute;

    inset:0;

    width:100%;

    height:100%;

    object-fit:cover;

}

.hero-overlay{

    position:absolute;

    inset:0;

    background:linear-gradient(

        135deg,

        rgba(13,71,161,.94),

        rgba(21,101,192,.72)

    );

}

.hero-content{

    position:relative;

    z-index:5;

    display:flex;

    flex-direction:column;

    height:100%;

    padding:65px;

    color:#ffffff;

}

.hero-badge{

    display:inline-flex;

    align-items:center;

    gap:10px;

    width:max-content;

    padding:10px 20px;

    border-radius:100px;

    background:rgba(255,255,255,.12);

    border:1px solid rgba(255,255,255,.18);

    backdrop-filter:blur(12px);

    margin-bottom:28px;

    font-size:14px;

    font-weight:600;

}

.hero-title{

    font-size:48px;

    font-weight:700;

    line-height:1.2;

    margin-bottom:24px;

}

.hero-description{

    max-width:700px;

    font-size:17px;

    line-height:1.9;

    margin-bottom:42px;

}

/* ==========================================================
   SAMBUTAN KEPALA SATUAN PENDIDIKAN
========================================================== */

.hero-welcome{

    margin-top:auto;

    display:flex;

    align-items:flex-end;

    gap:30px;

}

.hero-welcome-photo{

    flex-shrink:0;

}

.kepala-image{

    width:220px;

    filter:drop-shadow(0 20px 35px rgba(0,0,0,.30));

}

.hero-welcome-text{

    flex:1;

    background:rgba(255,255,255,.10);

    backdrop-filter:blur(18px);

    border:1px solid rgba(255,255,255,.18);

    border-radius:24px;

    padding:30px;

}

.hero-label{

    display:inline-block;

    margin-bottom:14px;

    padding:7px 16px;

    border-radius:100px;

    background:rgba(255,255,255,.18);

    font-size:13px;

    font-weight:600;

    letter-spacing:.4px;

}

.hero-welcome-text h3{

    margin-bottom:18px;

    font-size:30px;

    font-weight:700;

}

.hero-welcome-text p{

    margin-bottom:16px;

    line-height:1.9;

}

.hero-signature{

    margin-top:28px;

    padding-top:18px;

    border-top:1px solid rgba(255,255,255,.18);

}

.hero-signature h4{

    margin:0;

    font-size:20px;

    font-weight:700;

}

.hero-signature span{

    display:block;

    margin-top:6px;

    opacity:.92;

    font-size:14px;

}


/* ==========================================================
   SIDEBAR
========================================================== */

.portal-sidebar{

    height:100%;

    min-height:760px;

    background:#ffffff;

    border-radius:28px;

    overflow:hidden;

    box-shadow:var(--shadow-lg);

    display:flex;

    flex-direction:column;

}

.portal-sidebar-header{

    padding:34px;

    background:linear-gradient(

        135deg,

        var(--primary-dark),

        var(--primary)

    );

    color:#ffffff;

}

.portal-sidebar-header span{

    display:inline-block;

    margin-bottom:12px;

    font-size:13px;

    font-weight:600;

    letter-spacing:.5px;

    opacity:.95;

}

.portal-sidebar-header h3{

    margin-bottom:12px;

    font-size:30px;

    font-weight:700;

}

.portal-sidebar-header p{

    margin:0;

    line-height:1.8;

    opacity:.95;

}

.portal-sidebar-body{

    flex:1;

    padding:34px;

    display:flex;

    flex-direction:column;

    justify-content:center;

}

/* ==========================================================
   COUNTDOWN
========================================================== */

.countdown-title{

    display:flex;

    align-items:center;

    justify-content:center;

    gap:10px;

    margin-bottom:28px;

    color:var(--primary-dark);

    font-size:18px;

    font-weight:700;

}

.countdown-title i{

    font-size:22px;

    color:var(--accent);

}

.countdown-grid{

    display:grid;

    grid-template-columns:repeat(2,1fr);

    gap:18px;

}

.countdown-box{

    background:var(--primary-light);

    border:1px solid rgba(21,101,192,.08);

    border-radius:20px;

    padding:28px 18px;

    text-align:center;

    transition:var(--transition);

}

.countdown-box:hover{

    transform:translateY(-4px);

    box-shadow:var(--shadow);

}

.countdown-value{

    font-size:48px;

    font-weight:700;

    color:var(--primary-dark);

    line-height:1;

}

.countdown-label{

    margin-top:12px;

    font-size:13px;

    font-weight:600;

    color:var(--gray);

    text-transform:uppercase;

    letter-spacing:.6px;

}

.countdown-information{

    display:flex;

    align-items:flex-start;

    gap:12px;

    margin-top:30px;

    padding:18px;

    background:#FFF8E8;

    border-left:4px solid var(--accent);

    border-radius:14px;

}

.countdown-information i{

    color:var(--accent);

    font-size:18px;

    margin-top:2px;

}

.countdown-information span{

    color:var(--dark);

    line-height:1.8;

    font-size:14px;

}


/* ==========================================================
   LOGIN
========================================================== */

.login-title{

    text-align:center;

    margin-bottom:30px;

}

.login-title h4{

    margin-bottom:10px;

    font-size:32px;

    font-weight:700;

    color:var(--primary-dark);

}

.login-title p{

    margin:0;

    color:var(--gray);

    line-height:1.8;

}

.portal-form-group{

    margin-bottom:22px;

}

.portal-form-group label{

    display:block;

    margin-bottom:10px;

    font-weight:600;

    color:var(--dark);

}

.portal-input{

    width:100%;

    height:56px;

    border:1px solid var(--border);

    border-radius:14px;

    padding:0 18px;

    background:#ffffff;

    transition:var(--transition);

}

.portal-input:focus{

    outline:none;

    border-color:var(--primary);

    box-shadow:0 0 0 4px rgba(21,101,192,.12);

}

.portal-input::placeholder{

    color:#94A3B8;

}

.btn-login{

    width:100%;

    height:56px;

    border:none;

    border-radius:14px;

    background:linear-gradient(

        135deg,

        var(--primary),

        var(--primary-dark)

    );

    color:#ffffff;

    font-size:16px;

    font-weight:700;

    transition:var(--transition);

}

.btn-login i{

    margin-right:8px;

}

.btn-login:hover{

    transform:translateY(-2px);

    box-shadow:0 18px 35px rgba(21,101,192,.22);

}

.portal-help{

    margin-top:28px;

    padding-top:22px;

    border-top:1px solid var(--border);

    text-align:center;

    color:var(--gray);

    font-size:14px;

    line-height:1.8;

}

.portal-help i{

    color:var(--accent);

    margin-right:6px;
}

/* ==========================================================
   FOOTER
========================================================== */

.portal-footer{

    margin-top:45px;

    padding:28px 0;

    border-top:1px solid var(--border);

    background:#ffffff;

}

.portal-footer-content{

    display:flex;

    align-items:center;

    justify-content:space-between;

    gap:20px;

}

.portal-footer-content p{

    margin:0;

    color:var(--gray);

    font-size:14px;

}


/* ==========================================================
   ANIMATION
========================================================== */

@keyframes fadeUp{

    from{

        opacity:0;

        transform:translateY(35px);

    }

    to{

        opacity:1;

        transform:translateY(0);

    }

}

@keyframes fadeScale{

    from{

        opacity:0;

        transform:scale(.96);

    }

    to{

        opacity:1;

        transform:scale(1);

    }

}

.hero-card{

    animation:fadeUp .7s ease;

}

.portal-sidebar{

    animation:fadeScale .8s ease;

}


/* ==========================================================
   HOVER
========================================================== */

.hero-card{

    transition:var(--transition);

}

.hero-card:hover{

    transform:translateY(-6px);

    box-shadow:0 40px 70px rgba(21,101,192,.18);

}

.portal-sidebar{

    transition:var(--transition);

}

.portal-sidebar:hover{

    transform:translateY(-6px);

    box-shadow:0 40px 70px rgba(21,101,192,.18);

}

.portal-brand{

    transition:var(--transition);

}

.portal-brand:hover{

    transform:translateX(4px);

}

.countdown-box{

    transition:var(--transition);

}

.countdown-box:hover{

    background:#ffffff;

}


/* ==========================================================
   DESKTOP
========================================================== */

@media (min-width:1400px){

    .hero-card{

        min-height:800px;

    }

    .portal-sidebar{

        min-height:800px;

    }

    .hero-content{

        padding:75px;

    }

}


/* ==========================================================
   TABLET
========================================================== */

@media (max-width:1199px){

    .hero-content{

        padding:50px;

    }

    .hero-title{

        font-size:42px;

    }

    .kepala-image{

        width:185px;

    }

}

@media (max-width:991px){

    .portal-header{

        position:relative;

    }

    .portal-header-wrapper{

        justify-content:center;

    }

    .portal-brand{

        flex-direction:column;

        text-align:center;

        gap:14px;

    }

    .portal-school-name{

        font-size:24px;

    }

    .portal-main{

        padding-top:30px;

    }

    .hero-card{

        min-height:auto;

    }

    .portal-sidebar{

        min-height:auto;

        margin-top:8px;

    }

    .hero-content{

        padding:42px;

    }

    .hero-welcome{

        flex-direction:column-reverse;

        align-items:center;

        text-align:center;

    }

    .hero-welcome-photo{

        margin-bottom:10px;

    }

    .hero-welcome-text{

        width:100%;

    }

    .portal-sidebar-body{

        padding:30px;

    }

}

/* ==========================================================
   MOBILE
========================================================== */

@media (max-width:768px){

    .hero-section{
        padding:20px 0 35px;
    }

    .portal-header-wrapper{
        min-height:76px;
    }

    .portal-logo{
        width:54px;
        height:54px;
    }

    .portal-school-name{
        font-size:20px;
        line-height:1.35;
    }

    .portal-school-subtitle{
        font-size:13px;
    }

    .hero-content{
        padding:28px;
    }

    .hero-title{
        font-size:30px;
        margin-bottom:18px;
    }

    .hero-description{
        font-size:15px;
        line-height:1.8;
        margin-bottom:28px;
    }

    .hero-badge{
        font-size:12px;
        padding:8px 16px;
    }

    .hero-welcome{
        gap:22px;
    }

    .kepala-image{
        width:140px;
    }

    .hero-welcome-text{
        padding:22px;
    }

    .hero-welcome-text h3{
        font-size:22px;
    }

    .hero-signature h4{
        font-size:18px;
    }

    .portal-sidebar-header{
        padding:24px;
    }

    .portal-sidebar-header h3{
        font-size:26px;
    }

    .portal-sidebar-body{
        padding:24px;
    }

    .countdown-grid{
        gap:14px;
    }

    .countdown-box{
        padding:20px 10px;
    }

    .countdown-value{
        font-size:34px;
    }

    .countdown-label{
        font-size:12px;
    }

    .login-title h4{
        font-size:24px;
    }

    .portal-input,
    .btn-login{
        height:50px;
    }

    .portal-footer-content{
        flex-direction:column;
        text-align:center;
    }

}

@media (max-width:576px){

    .container-xxl{
        padding-left:18px;
        padding-right:18px;
    }

    .hero-card,
    .portal-sidebar{
        border-radius:22px;
    }

    .hero-content{
        padding:22px;
    }

    .hero-title{
        font-size:24px;
    }

    .hero-description{
        font-size:14px;
    }

    .portal-school-name{
        font-size:18px;
    }

    .portal-school-subtitle{
        font-size:12px;
    }

    .countdown-grid{
        grid-template-columns:repeat(2,1fr);
    }

}


/* ==========================================================
   ACCESSIBILITY
========================================================== */

.portal-brand:focus-visible,
.portal-input:focus-visible,
.btn-login:focus-visible{

    outline:3px solid rgba(21,101,192,.25);

    outline-offset:3px;

}

::selection{

    background:rgba(21,101,192,.18);

    color:var(--dark);

}


/* ==========================================================
   REDUCED MOTION
========================================================== */

@media (prefers-reduced-motion:reduce){

    *{

        animation:none !important;

        transition:none !important;

        scroll-behavior:auto !important;

    }

}


/* ==========================================================
   PRINT
========================================================== */

@media print{

    .portal-header{

        position:relative;

    }

    .portal-sidebar{

        display:none;

    }

    .hero-card{

        box-shadow:none;

        min-height:auto;

    }

}


/* ==========================================================
   SCROLLBAR
========================================================== */

::-webkit-scrollbar{

    width:10px;

}

::-webkit-scrollbar-track{

    background:#EEF3F8;

}

::-webkit-scrollbar-thumb{

    background:var(--primary);

    border-radius:50px;

}

::-webkit-scrollbar-thumb:hover{

    background:var(--primary-dark);

}


/* ==========================================================
   PERFORMANCE
========================================================== */

.hero-image,
.kepala-image,
.portal-logo{

    user-select:none;

    -webkit-user-drag:none;

}

.hero-card,
.portal-sidebar{

    backface-visibility:hidden;

    transform:translateZ(0);

}


/* ==========================================================
   END OF FILE
========================================================== */