﻿
/* =====================================================
   HULEG TEACHER PORTAL
   LOGIN
   ===================================================== */

* {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    min-height: 100%;
    margin: 0;
}

body {
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    color: #14213d;
}


/* =====================================================
   PAGE
   ===================================================== */

.login-page {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 40px 20px;
    background: linear-gradient( 145deg, #f8fafc 0%, #f2f6fb 50%, #edf3f9 100% );
}


/* =====================================================
   BACKGROUND DECORATION
   ===================================================== */

.login-decoration {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(1px);
}

.decoration-one {
    width: 520px;
    height: 520px;
    top: -280px;
    right: -180px;
    background: rgba(29, 78, 216, .05);
}

.decoration-two {
    width: 450px;
    height: 450px;
    bottom: -280px;
    left: -170px;
    background: rgba(15, 76, 129, .05);
}


/* =====================================================
   CONTAINER
   ===================================================== */

.login-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 460px;
}


/* =====================================================
   SCHOOL BRAND
   ===================================================== */

.login-brand {
    margin-bottom: 28px;
    text-align: center;
}

.login-logo-wrap {
    width: 92px;
    height: 92px;
    margin: 0 auto 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-logo {
    display: block;
    max-width: 92px;
    max-height: 92px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.school-name {
    color: #12294b;
    font-size: 19px;
    font-weight: 800;
    letter-spacing: .7px;
}

.school-name-en {
    margin-top: 5px;
    color: #8390a3;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.8px;
}


/* =====================================================
   LOGIN CARD
   ===================================================== */

.login-card {
    padding: 38px;
    background: rgba(255, 255, 255, .96);
    border: 1px solid rgba(218, 225, 233, .9);
    border-radius: 20px;
    box-shadow: 0 20px 55px rgba(24, 45, 75, .08);
}


/* =====================================================
   CARD HEADER
   ===================================================== */

.login-card-header {
    margin-bottom: 28px;
    text-align: center;
}

.login-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: #f0f5fa;
    color: #173b68;
    font-size: 22px;
}

.login-card-header h1 {
    margin: 0;
    color: #152943;
    font-size: 23px;
    font-weight: 750;
}

.login-card-header p {
    max-width: 320px;
    margin: 9px auto 0;
    color: #7b8798;
    font-size: 14px;
    line-height: 1.6;
}


/* =====================================================
   MICROSOFT LOGIN BUTTON
   ===================================================== */

.microsoft-login-button {
    width: 100%;
    min-height: 54px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 13px;
    padding: 12px 48px 12px 18px;
    border: 0;
    border-radius: 11px;
    background: #152943;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background .18s ease, transform .18s ease, box-shadow .18s ease;
}

    .microsoft-login-button:hover {
        background: #0f2138;
        transform: translateY(-1px);
        box-shadow: 0 8px 20px rgba(21, 41, 67, .16);
    }

    .microsoft-login-button:active {
        transform: translateY(0);
    }


/* Microsoft four-square logo */

.microsoft-logo {
    width: 19px;
    height: 19px;
    flex: 0 0 19px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 2px;
}

    .microsoft-logo span:nth-child(1) {
        background: #f35325;
    }

    .microsoft-logo span:nth-child(2) {
        background: #81bc06;
    }

    .microsoft-logo span:nth-child(3) {
        background: #05a6f0;
    }

    .microsoft-logo span:nth-child(4) {
        background: #ffba08;
    }

.microsoft-arrow {
    position: absolute;
    right: 18px;
    font-size: 16px;
    opacity: .7;
    transition: transform .18s ease;
}

.microsoft-login-button:hover
.microsoft-arrow {
    transform: translateX(3px);
}


/* =====================================================
   LOGIN INFORMATION
   ===================================================== */

.login-information {
    margin-top: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #7d8998;
    font-size: 12px;
    line-height: 1.4;
    text-align: center;
}

    .login-information i {
        color: #4e6d8e;
        font-size: 15px;
    }


/* =====================================================
   FOOTER
   ===================================================== */

.login-footer {
    margin-top: 25px;
    color: #7f8b99;
    text-align: center;
    font-size: 11px;
}

.login-footer-sub {
    margin-top: 4px;
    color: #a1a9b4;
}


/* =====================================================
   MOBILE
   ===================================================== */

@media (max-width: 575.98px) {

    .login-page {
        align-items: flex-start;
        padding: 50px 17px 30px;
    }

    .login-logo-wrap {
        width: 78px;
        height: 78px;
        margin-bottom: 15px;
    }

    .login-logo {
        max-width: 78px;
        max-height: 78px;
    }

    .school-name {
        font-size: 16px;
    }

    .school-name-en {
        font-size: 9px;
    }

    .login-card {
        padding: 30px 22px;
        border-radius: 17px;
    }

    .login-card-header h1 {
        font-size: 20px;
    }

    .login-card-header p {
        font-size: 13px;
    }

    .microsoft-login-button {
        min-height: 52px;
        padding-left: 14px;
        font-size: 13px;
    }
}
