/* ==========================================================
   BIZENTRIX LMS LOGIN PAGE
========================================================== */

/* RESET */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:'Poppins',sans-serif;
}

html,
body{
    width:100%;
    height:100%;
    margin:0;
    padding:0;
    background:#0b0d10;
    overflow-y:auto;
    overflow-x:hidden;
}

/* ==========================================================
   PAGE
========================================================== */

.login-page{
    width:100%;
    min-height:100vh;

    display:flex;
    justify-content:center;
    align-items:center;
    padding:20px 0;

    background:linear-gradient(
        135deg,
        #0b0d10 0%,
        #11161b 40%,
        #18242f 100%
    );
}

/* ==========================================================
   LOGIN CARD
========================================================== */

.login-card{
    width:460px;
    min-height:auto;

    background:#181d22;
    border:1px solid #2D82D8;
    border-radius:20px;

    padding:28px;

    box-shadow:
        0 20px 60px rgba(0,0,0,.55),
        0 0 20px rgba(45,130,216,.15);

    text-align:center;
    display:flex;
    flex-direction:column;
}

/* ==========================================================
   LOGO
========================================================== */

.login-logo{
    margin-bottom:12px;
}

.login-logo img{
    width:60px;
    height:60px;
    object-fit:contain;

    border-radius:12px;

    box-shadow:
        0 0 20px rgba(45,130,216,.35),
        0 0 35px rgba(76,175,80,.20);
}

/* ==========================================================
   TITLES
========================================================== */

.login-card h1{

    color:#4DA3FF;

    font-size:24px;
    margin-top:8px;

    font-weight:700;

    margin-bottom:4px;
}

.login-subtitle{

    color:#d1d8e2;

    font-size:14px;

    margin-bottom:20px;
}

/* ==========================================================
   FORM
========================================================== */

.login-form{

    text-align:left;
    
    display:flex;
    flex-direction:column;
    gap:0;
}

.form-group{

    margin-bottom:12px;
}

.form-group label{

    display:block;

    margin-bottom:6px;

    color:#45C157;

    font-size:14px;

    font-weight:600;
}

.form-group input,
.form-group select,
.form-group textarea{

    width:100%;

    min-height: 40px;

    padding:0 12px;

    border-radius:10px;

    border:1px solid #34414d;

    background:#1a1f26;

    color:#e8ecf1;

    font-size:14px;

    transition:.3s;
}

.form-group input::placeholder{

    color:#7a8896;
}

.form-group select option{

    background:#1a1f26;
    
    color:#ffffff;
    
    padding: 8px;
    
    margin: 4px 0;
}

.form-group select option:hover{

    background:#2D82D8;
    
    color:#ffffff;
}

.form-group select option:checked{

    background:#2D82D8;
    
    color:#ffffff;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus{

    outline:none;

    border-color:#2D82D8;

    background:#22282f;

    box-shadow:0 0 10px rgba(45,130,216,.30);
}

/* ==========================================================
   BUTTONS
========================================================== */

.btn{

    width:100%;

    height:40px;

    display:flex;

    justify-content:center;

    align-items:center;

    border:none;

    border-radius:10px;

    cursor:pointer;

    font-size:15px;

    font-weight:600;

    transition:.3s;

    text-decoration:none;
    
    outline:none;
}

    cursor:pointer;

    font-size:16px;

    font-weight:600;

    transition:.3s;

    text-decoration:none;
}

/* Login */

.btn-primary{

    background:linear-gradient(
        90deg,
        #2D82D8,
        #4CAF50
    );

    color:white;
}

.btn-primary:hover{

    transform:translateY(-2px);

    box-shadow:0 8px 25px rgba(45,130,216,.30);
}

.btn-primary:focus{
    outline:none;
}

/* Microsoft */

.btn-microsoft{

    background:#232930;

    color:white;

    border:1px solid #394552;
}

.btn-microsoft:hover{

    background:#29323b;

    border-color:#2D82D8;
}

/* ==========================================================
   DIVIDER
========================================================== */

.divider{

    position:relative;

    margin:16px 0;

    text-align:center;

    color:#aab4c0;
    font-size:13px;
}

.divider::before,
.divider::after{

    content:"";

    position:absolute;

    top:50%;

    width:40%;

    height:1px;

    background:#394552;
}

.divider::before{

    left:0;
}

.divider::after{

    right:0;
}

/* ==========================================================
   LINKS
========================================================== */

a{

    color:#4DA3FF;

    text-decoration:none;
}

a:hover{

    color:#76BFFF;
}

.signup-link {
    text-align: center;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #394552;
}

.signup-link p {
    margin: 0;
    color: #aab4c0;
    font-size: 13px;
}

.signup-link a {
    color: #4DA3FF;
    text-decoration: none;
    font-weight: 600;
}

.signup-link a:hover {
    color: #76BFFF;
}

.oauth-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 12px;
}

.btn-oauth {
    background: #232930;
    color: white;
    border: 1px solid #394552;
    border-radius: 10px;
    padding: 10px;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-decoration: none;
    transition: 0.3s;
    outline: none;
}

.btn-oauth:hover {
    background: #29323b;
    border-color: #2D82D8;
}

.btn-oauth:focus {
    outline: none;
}

/* ==========================================================
   UTILITIES
========================================================== */

.w-100 {
    width: 100%;
}

/* ==========================================================
   FORM CONTROLS
========================================================== */

input[type="checkbox"],
input[type="radio"]{

    appearance: none;
    
    width: 18px;
    
    height: 18px;
    
    border: 2px solid #34414d;
    
    background: #1a1f26;
    
    border-radius: 4px;
    
    cursor: pointer;
    
    transition: 0.3s;
    
    margin-right: 4px;
}

input[type="radio"]{
    border-radius: 50%;
}

input[type="checkbox"]:checked,
input[type="radio"]:checked{

    background: linear-gradient(135deg, #2D82D8, #4CAF50);
    
    border-color: #2D82D8;
    
    box-shadow: 0 0 8px rgba(45, 130, 216, 0.4);
}

input[type="checkbox"]:focus,
input[type="radio"]:focus{

    outline: none;
    
    border-color: #2D82D8;
}

/* ==========================================================
   ERRORS
========================================================== */

.form-error{

    background:#412323;

    color:#ffaaaa;

    border-left:4px solid #ff4d4d;

    padding:12px;

    border-radius:8px;

    margin-bottom:20px;
}

.field-error{

    color:#ff8d8d;

    font-size:13px;

    margin-top:5px;
}

/* ==========================================================
   SCROLLBAR
========================================================== */

::-webkit-scrollbar{

    width:8px;
}

::-webkit-scrollbar-track{

    background:transparent;
}

::-webkit-scrollbar-thumb{

    background:#2D82D8;

    border-radius:10px;
}

/* ==========================================================
   MOBILE
========================================================== */

@media(max-width:480px){

    .login-card{

        width:92%;

        max-height:95vh;

        padding:28px;
    }

    .login-card h1{

        font-size:24px;
    }

    .login-logo img{

        width:60px;

        height:60px;
    }

    .oauth-buttons {
        grid-template-columns: 1fr;
    }
}