/* ========================================
   ELearning LMS - Login Page CSS
   Matching original BVU Login design
   ======================================== */

* { padding: 0; margin: 0; box-sizing: border-box; }
ul, ol { list-style: none; }
img { max-width: 100%; object-fit: cover; }
a, a:hover { text-decoration: none; }

body {
    font-family: 'Segoe UI', Tahoma, sans-serif;
    font-size: 14px;
    background: #f0f2f5;
    margin: 0;
}

/* === HEADER === */
.wapper-login .header {
    background: #005ab7;
    box-shadow: 0px 1px 5px 2px rgb(191, 211, 222);
    height: 100px;
    padding: 10px 0;
}
.logo-login-main img { height: 78px; }

/* === MAIN CONTENT === */
.wapper-login .main-content {
    padding-top: 15px;
    padding-bottom: 15px;
    min-height: calc(100vh - 135px);
}

/* === NOTIFICATION PANEL (left side) === */
.notifi {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.notifi .head-notifi {
    padding-bottom: 10px;
    margin-bottom: 10px;
    color: #005ab7;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    border-bottom: 1px solid #eaeaea;
}
.notifi .content-notifi {
    max-height: calc(100vh - 255px);
    overflow: auto;
    padding-right: 10px;
}
.notifi .content-notifi::-webkit-scrollbar { width: 4px; background-color: #bfbfbf; }
.notifi .content-notifi::-webkit-scrollbar-track { background-color: #ffffff; border-radius: 10px; }
.notifi .content-notifi::-webkit-scrollbar-thumb { border-radius: 10px; background-color: #78b9fb; }

/* Notification tabs */
.notifi .nav-tabs { border-bottom: 2px solid #005ab7; }
.notifi .nav-tabs .nav-link {
    color: #667580;
    font-size: 13px;
    padding: 8px 16px;
    border: none;
    border-radius: 0;
    font-weight: 500;
}
.notifi .nav-tabs .nav-link.active {
    color: #005ab7;
    font-weight: 600;
    border-bottom: 3px solid #005ab7;
    background: transparent;
}

/* News items */
.item-notifi {
    margin-bottom: 15px;
    border-bottom: 1px solid #eaeaea;
    padding: 10px 0;
    display: flex;
}
.item-notifi .box-left {
    width: 80px;
    margin-right: 15px;
    flex-shrink: 0;
}
.item-notifi .date-notifi {
    width: 70px;
    height: 70px;
    margin: auto;
    text-align: center;
    overflow: hidden;
    border-radius: 4px;
    border: 1px solid #eee;
}
.item-notifi .date-notifi .month {
    color: #fff;
    height: 25px;
    line-height: 25px;
    font-size: 11px;
    background: #005ab7;
}
.item-notifi .date-notifi .days {
    color: #005ab7;
    height: 45px;
    line-height: 45px;
    background: #fff;
    font-size: 26px;
    font-weight: 700;
}
.item-notifi .desc-notifi { flex: 1; }
.item-notifi .desc-notifi .title-notifi {
    font-size: 13px;
    font-weight: 500;
    color: #005ab7;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 4px;
}
.item-notifi .desc-notifi .title-notifi:hover { color: #003d7e; }
.item-notifi .desc-notifi .date {
    font-size: 11px;
    color: #ce1126;
    margin-bottom: 4px;
}
.item-notifi .desc-notifi .desc {
    margin-bottom: 0;
    font-size: 13px;
    color: #666;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* === LOGIN FORM (right side) === */
.bg-form {
    background: linear-gradient(135deg, #005ab7 0%, #003d7e 100%);
    border-radius: 10px;
    position: relative;
    min-height: 500px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
}
.form-wrap {
    border-radius: 10px;
    padding: 0px 24px;
    display: inline-block;
    border: 5px solid #fff;
    background: rgba(255,255,255,.9);
    box-shadow: 2px 8px 20px rgba(0,0,0,0.15);
    position: relative;
    overflow-x: hidden;
    width: 100%;
    min-height: 500px;
}
.form-login img { margin-top: 25px; }
.form-login h4,
.form-login-inner h4 {
    color: #044eb7;
    margin: 20px 0;
    font-size: 18px;
    font-weight: 500;
    text-transform: uppercase;
    text-align: center;
}
.form-login .input,
.form-login-inner .input {
    width: 100%;
    padding: 10px 20px;
    margin-bottom: 10px;
    border-radius: 6px;
    background: #fff;
    border: 1px solid #ddd;
    outline: 0;
    font-size: 14px;
}
.form-login .input:focus,
.form-login-inner .input:focus {
    border-color: #005ab7;
    box-shadow: 0 0 0 2px rgba(0,90,183,0.15);
}
.form-login .input::placeholder,
.form-login-inner .input::placeholder {
    color: #999;
    font-style: italic;
}
.form-login .button,
.form-login-inner .button {
    width: 100%;
    font-size: 16px;
    padding: 12px 20px;
    border: 1px solid #ff5a00;
    border-radius: 6px !important;
    margin-top: 15px;
    background: #ff5a00;
    color: #fff;
    text-transform: uppercase;
    cursor: pointer;
    border-bottom: 5px solid #dc560d !important;
    font-weight: 600;
    transition: filter 0.2s;
}
.form-login .button:hover,
.form-login-inner .button:hover { filter: brightness(0.9); }
.form-login .error-message,
.form-login-inner .error-message {
    background: #fff3f3;
    border: 1px solid #ffcdd2;
    color: #c62828;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 10px;
}

/* Quick lookup links */
.ul-tracuu {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    border-radius: 5px;
    overflow: hidden;
}
.ul-tracuu .item {
    width: 50%;
    height: 80px;
    position: relative;
    overflow: hidden;
}
.ul-tracuu .item a {
    width: 100%;
    height: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    text-transform: uppercase;
    font-weight: 700;
    text-align: center;
    background-color: rgba(255,255,255,0.85);
    color: #333;
    border: 1px solid #eee;
    transition: all 0.3s;
    line-height: 1.4;
}
.ul-tracuu .item a:hover {
    color: #005ab7;
    background-color: #fff;
}
.ul-tracuu .item a i {
    display: block;
    font-size: 20px;
    margin-bottom: 6px;
    color: #005ab7;
}

/* Login support contact */
.login-support-main {
    padding: 15px 20px;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 10;
}
.login-support-main .login-contact strong {
    font-size: 18px;
    color: #fff;
    display: block;
    font-weight: 500;
}
.login-support-main .login-support p {
    font-size: 11px;
    margin: 0;
    color: rgba(255,255,255,0.8);
}

/* Form footer */
.wapper-login .form-footer {
    margin-top: 25px;
    text-align: right;
    color: #005ab7;
    font-size: 12px;
    position: relative;
    z-index: 11;
}
.wapper-login .form-footer .create {
    padding: 4px 12px;
    background: #25c6cb;
    border-radius: 6px !important;
    margin-left: 5px;
    display: inline-block;
}
.wapper-login .form-footer .create a { color: #fff; }

/* === FOOTER === */
.footer {
    color: #005ab7;
    border-top: 1px solid #eaeaea;
    background: #fff;
    height: 35px;
    line-height: 35px;
    text-align: center;
    font-size: 12px;
}

/* === FLASH MESSAGES === */
.flash-success { background: #d4edda; border: 1px solid #c3e6cb; color: #155724; padding: 12px 16px; border-radius: 8px; margin-bottom: 16px; }
.flash-error { background: #f8d7da; border: 1px solid #f5c6cb; color: #721c24; padding: 12px 16px; border-radius: 8px; margin-bottom: 16px; }

/* === RESPONSIVE === */
@media only screen and (min-width: 1200px) {
    .notifi .head-notifi { font-size: 18px; }
    .item-notifi .desc-notifi .title-notifi { font-size: 15px; }
}

@media only screen and (min-width: 768px) {
    .wapper-login .main-content .col-login-left {
        flex: 0 0 calc(100% - 340px);
        max-width: calc(100% - 340px);
    }
    .wapper-login .main-content .col-login-right {
        flex: 0 0 340px;
        max-width: 340px;
    }
}

@media only screen and (max-width: 991px) {
    .wapper-login .main-content .col-login-left {
        flex: 0 0 calc(100% - 320px);
        max-width: calc(100% - 320px);
    }
    .wapper-login .main-content .col-login-right {
        flex: 0 0 320px;
        max-width: 320px;
    }
}

@media only screen and (max-width: 767px) {
    .wapper-login .header { height: auto; padding: 12px 0; text-align: center; }
    .logo-login-main img { height: 50px; }
    .bg-form { min-height: auto; }
    .login-support-main { position: relative; padding: 12px 16px; }

    /* Login form hiện trước, tin tức sau trên mobile */
    .wapper-login .main-content .row {
        flex-direction: column-reverse;
    }
    .wapper-login .main-content .col-login-left,
    .wapper-login .main-content .col-login-right {
        flex: 0 0 100%;
        max-width: 100%;
    }
    .wapper-login .main-content .col-login-right {
        margin-bottom: 16px;
    }

    .form-wrap {
        padding: 0 16px;
        min-height: auto;
    }
    .form-login h4,
    .form-login-inner h4 { font-size: 16px; margin: 16px 0; }

    /* Quick lookup links 2 cột trên phone */
    .ul-tracuu .item { width: 50%; height: 70px; }
    .ul-tracuu .item a { height: 70px; font-size: 11px; }
    .ul-tracuu .item a i { font-size: 18px; }

    /* News compact */
    .notifi .content-notifi { max-height: 300px; }
    .item-notifi .box-left { width: 60px; margin-right: 10px; }
    .item-notifi .date-notifi { width: 55px; height: 55px; }
    .item-notifi .date-notifi .days { font-size: 20px; height: 35px; line-height: 35px; }
    .item-notifi .date-notifi .month { height: 20px; line-height: 20px; font-size: 10px; }

    /* Input iOS zoom fix */
    .form-login .input,
    .form-login-inner .input { font-size: 16px; padding: 12px 16px; }
    .form-login .button,
    .form-login-inner .button { font-size: 15px; padding: 14px 20px; }
}

@media only screen and (max-width: 440px) {
    .wapper-login .header { padding: 8px 0; }
    .logo-login-main img { height: 40px; }
    .form-wrap { border-width: 3px; padding: 0 12px; }
    .login-support-main .login-contact strong { font-size: 15px; }
    .ul-tracuu .item a { font-size: 10px; }
}
