﻿
/*=========================================================
BODY
=========================================================*/

html, body
{
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    font-family: 'Segoe UI' ,Arial,sans-serif;
}

body
{
    background: linear-gradient(135deg,rgba(25,135,84,.18),rgba(255,255,255,.95)), url('../images/login-bg.jpg') center center/cover no-repeat;
}


/*=========================================================
WRAPPER
=========================================================*/

.login-wrapper
{
    width: 100%;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 12px 15px;
}

/*=========================================================
FORM
=========================================================*/

.form-group
{
    margin-bottom: 10px;
}

.form-group label
{
    display: block;
    margin-bottom: 4px;
    font-size: 12px;
    font-weight: 600;
    color: #2f3b45;
}


/*=========================================================
INPUT
=========================================================*/

.form-control
{
    height: 36px;
    border: 1px solid #d7dce1;
    border-radius: 8px;
    box-shadow: none;
    font-size: 12px;
    transition: .25s;
    padding: 6px 10px;
}

.form-control:focus
{
    border-color: #198754;
    box-shadow: 0 0 5px rgba(25,135,84,.15);
}


/*=========================================================
INPUT GROUP
=========================================================*/

.input-group
{
    display: table;
    width: 100%;
    border-collapse: separate;
}

.input-group-addon
{
    display: table-cell;
    width: 42px;
    background: #198754;
    color: #fff;
    border: 1px solid #198754;
    border-right: none;
    border-radius: 8px 0 0 8px;
    vertical-align: middle;
    text-align: center;
}

.input-group .form-control
{
    display: table-cell;
    width: 100%;
    float: none;
    border-radius: 0 8px 8px 0;
}
/*=========================================================
        FIX DROPDOWN & TEXTBOX WIDTH
        =========================================================*/
.input-group select.form-control, .input-group input.form-control
{
    width: 100% !important;
}

/*=========================================================
PASSWORD
=========================================================*/

.password-area
{
    position: relative;
    width: 100%;
}

.password-area .form-control
{
    width: 100%;
    padding-right: 40px;
}

.password-eye
{
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
    cursor: pointer;
    font-size: 16px;
}

.password-eye:hover
{
    color: #198754;
}

/*=========================================================
REMEMBER
=========================================================*/

.remember-row
{
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 6px 0 10px;
}

.remember-label
{
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    font-size: 12px;
    font-weight: 600;
}

.remember-label input
{
    margin: 0;
}

.forgot-link
{
    color: #198754;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
}

.forgot-link:hover
{
    color: #146c43;
    text-decoration: none;
}


/*=========================================================
CAPTCHA
=========================================================*/

.login-label
{
    color: #2e7d32;
    font-weight: 600;
}

.captcha-card
{
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border: 1px solid #dfe7df;
    border-radius: 10px;
    background: #f8fbf8;
}

.captcha-image
{
    position: relative;
}

.captcha-box
{
    width: 125px;
    height: 40px;
    border: 1px solid #d7dce1;
    border-radius: 6px;
    background: #fff;
}

.captcha-input
{
    flex: 1;
    height: 40px;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 3px;
}

.captcha-refresh
{
    position: absolute;
    right: -8px;
    top: -8px;
    width: 26px;
    height: 26px;
    line-height: 26px;
    text-align: center;
    border-radius: 50%;
    background: #198754;
    color: #fff;
    font-size: 12px;
    transition: .3s;
}

.captcha-refresh:hover
{
    background: #146c43;
    color: #fff;
    transform: rotate(180deg);
}


/*=========================================================
LOGIN BUTTON
=========================================================*/

.btn-login
{
    height: 40px;
    border: none;
    border-radius: 25px;
    background: linear-gradient(90deg,#198754,#28a745);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
}

.btn-login:hover
{
    color: #fff;
    transform: translateY(-1px);
}


/*=========================================================
FOOTER
=========================================================*/

.footer
{
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid #ececec;
    text-align: center;
    color: #777;
    font-size: 11px;
}


/*=========================================================
LOGIN CARD (IMPORTANT)
=========================================================*/
/*=========================================================
LOGIN CARD
=========================================================*/

.login-card
{
    width: 100%;
    max-width: 500px;
    background: #fff;
    border-radius: 20px;
    padding: 18px 24px;
    box-shadow: 0 15px 35px rgba(0,0,0,.15);
}


/*=========================================================
TABLET
=========================================================*/

@media (max-width:768px)
{

    .login-wrapper
    {
        align-items: flex-start;
        padding: 20px 12px;
    }

    .login-card
    {
        max-width: 430px;
        padding: 18px;
    }

}


/*=========================================================
MOBILE
=========================================================*/

@media (max-width:480px)
{

    .login-wrapper
    {
        align-items: flex-start;
        padding: 12px 10px;
    }

    .login-card
    {
        max-width: 100%;
        border-radius: 14px;
        padding: 15px;
    }

    .logo
    {
        width: 42px;
        height: 42px;
    }

    .portal-title
    {
        font-size: 18px;
    }

    .portal-subtitle
    {
        font-size: 11px;
        line-height: 15px;
    }

    .form-group
    {
        margin-bottom: 10px;
    }

    .form-control
    {
        height: 36px;
        font-size: 12px;
    }

    .input-group-addon
    {
        width: 40px;
    }

    .captcha-card
    {
        display: block;
        text-align: center;
    }

    .captcha-image
    {
        display: inline-block;
        margin-bottom: 10px;
    }

    .captcha-box
    {
        width: 120px;
        height: 40px;
    }

    .captcha-input
    {
        width: 100%;
        height: 38px;
    }

    .btn-login
    {
        height: 40px;
    }

    .footer
    {
        margin-top: 10px;
    }

}


/*=========================================================
LOW HEIGHT SCREEN
=========================================================*/

@media (max-height:700px)
{

    .login-wrapper
    {
        align-items: flex-start;
        padding: 10px;
    }

    .login-card
    {
        padding: 14px 18px;
    }

    .form-group
    {
        margin-bottom: 8px;
    }

    .logo
    {
        width: 40px;
        height: 40px;
    }

    .portal-title
    {
        font-size: 18px;
    }

    .portal-subtitle
    {
        font-size: 11px;
        line-height: 15px;
    }

}

/*=========================================================
LOGO
=========================================================*/

.logo
{
    width: 48px;
    height: 48px;
    margin-bottom: 2px;
}


/*=========================================================
TITLE
=========================================================*/

.portal-title
{
    font-size: 20px;
    font-weight: 700;
    color: #146c43;
    margin-bottom: 2px;
}

.portal-subtitle
{
    font-size: 12px;
    line-height: 16px;
}


/*=========================================================
DIVIDER
=========================================================*/

.divider
{
    margin: 8px 0;
}


/*=========================================================
RESPONSIVE
=========================================================*/

@media (max-width:768px)
{

    body
    {
        display: block;
        min-height: auto;
    }

    .login-wrapper
    {
        min-height: auto;
        padding: 12px;
        display: block;
    }

    .login-card
    {
        width: 100%;
        max-width: 420px;
        margin: 0 auto;
        padding: 16px;
        border-radius: 16px;
    }

    .logo
    {
        width: 46px;
        height: 46px;
    }

    .portal-title
    {
        font-size: 20px;
    }

    .portal-subtitle
    {
        font-size: 11px;
        line-height: 16px;
    }

    .form-group
    {
        margin-bottom: 8px;
    }

    .form-control
    {
        height: 36px;
        font-size: 12px;
    }

    .input-group-addon
    {
        width: 38px;
    }

    .captcha-card
    {
        display: block;
        text-align: center;
        padding: 8px;
    }

    .captcha-image
    {
        display: inline-block;
        margin-bottom: 8px;
    }

    .captcha-box
    {
        width: 120px;
        height: 38px;
    }

    .captcha-input
    {
        width: 100%;
        height: 36px;
    }

    .remember-row
    {
        display: block;
        text-align: center;
    }

    .remember-label
    {
        justify-content: center;
        margin-bottom: 8px;
    }

    .forgot-link
    {
        display: inline-block;
    }

    .btn-login
    {
        height: 38px;
        font-size: 14px;
    }

    .footer
    {
        margin-top: 8px;
        font-size: 11px;
    }

}


@media (max-width:480px)
{

    .login-wrapper
    {
        padding: 8px;
    }

    .login-card
    {
        width: 100%;
        padding: 14px;
        border-radius: 14px;
    }

    .logo
    {
        width: 40px;
        height: 40px;
    }

    .portal-title
    {
        font-size: 18px;
    }

    .portal-subtitle
    {
        font-size: 10px;
        line-height: 15px;
    }

    .form-group
    {
        margin-bottom: 7px;
    }

    .form-control
    {
        height: 34px;
        font-size: 12px;
    }

    .input-group-addon
    {
        width: 36px;
    }

    .captcha-box
    {
        width: 110px;
        height: 36px;
    }

    .captcha-refresh
    {
        width: 24px;
        height: 24px;
        line-height: 24px;
        right: -6px;
        top: -6px;
    }

    .btn-login
    {
        height: 36px;
        font-size: 13px;
    }

    .footer
    {
        margin-top: 6px;
        font-size: 10px;
    }

}


@media (max-height:700px)
{

    .login-wrapper
    {
        padding: 8px;
    }

    .login-card
    {
        padding: 14px 18px;
    }

    .logo
    {
        width: 40px;
        height: 40px;
    }

    .portal-title
    {
        font-size: 18px;
    }

    .portal-subtitle
    {
        font-size: 10px;
        line-height: 15px;
    }

    .divider
    {
        margin: 6px 0;
    }

    .form-group
    {
        margin-bottom: 7px;
    }

    .form-control
    {
        height: 34px;
    }

    .btn-login
    {
        height: 36px;
    }

    .footer
    {
        margin-top: 6px;
        padding-top: 6px;
    }

}
