/*//////////////////////////////////////////////////////////////////
[ FONT ]*/

@font-face {
  font-family: Poppins-Regular;
  src: url('../fonts/Poppins-Regular.ttf'); 
}

@font-face {
  font-family: Poppins-Medium;
  src: url('../fonts/Poppins-Medium.ttf'); 
}

@font-face {
  font-family: Poppins-Bold;
  src: url('../fonts/Poppins-Bold.ttf'); 
}

@font-face {
  font-family: Poppins-SemiBold;
  src: url('../fonts/Poppins-SemiBold.ttf'); 
}

/*//////////////////////////////////////////////////////////////////
[ RESTYLE TAG ]*/

* {
    margin: 0px; 
    padding: 0px; 
    box-sizing: border-box;
}

body, html {
    font-family: Poppins-Regular, sans-serif;
    overflow-x: hidden;
    overflow-y: auto;
    max-width: 100%;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-attachment: fixed;
}

/* Responsive Design */
.container-fluid {
    padding: 0;
    margin: 0;
    width: 100%;
    overflow-x: hidden;
}

.row {
    margin: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    width: 100%;
    flex-wrap: wrap;
}

/* Logo Section */
.col-md-5 {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 0 20px 20px 0;
    min-height: 100vh;
}

/* Login Form Section */
.col-md-7 {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
    min-height: 100vh;
}

.logo {
    margin: 0;
    text-align: center;
    margin-bottom: 30px;
}

.logo img {
    max-width: 200px;
    max-height: 150px;
    width: auto;
    height: auto;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.merk {
    margin-top: 20px;
    text-align: center;
    font-size: 18pt;
    font-weight: bold;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.school {
    margin-top: 10px;
    text-align: center;
    font-size: 14pt;
    font-weight: bold;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Login Form Section */
.col-md-7 {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
    min-height: 100vh;
}

.title-login {
    text-align: center;
    font-size: 28pt;
    margin-top: 0;
    margin-bottom: 40px;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    font-weight: bold;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    color: #fff;
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.form-control.flat {
    border-radius: 10px;
    height: 50px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.9);
    padding: 0 15px;
    font-size: 16px;
    transition: all 0.3s ease;
    width: 100%;
}

.form-control.flat:focus {
    border-color: #fff;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
    outline: none;
}

.btn-login {
    border-radius: 10px;
    background: linear-gradient(45deg, #fff, #f0f0f0);
    border: 2px solid #fff;
    color: #2ABB9B;
    width: 100%;
    height: 50px;
    font-size: 18px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    margin-top: 10px;
}

.btn-login:hover {
    background: linear-gradient(45deg, #2ABB9B, #1a9b7a);
    border-color: #fff;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.alert {
    border-radius: 10px;
    border: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Form Row Optimization */
.form-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px;
}

.form-col {
    flex: 1;
    padding: 0 10px;
    min-width: 250px;
}

/* Mobile Responsive */
@media (max-width: 991px) {
    .row {
        flex-direction: column-reverse;
    }
    
    .col-md-5 {
        min-height: auto;
        padding: 20px 15px;
        border-radius: 0;
        order: 2;
        width: 100%;
        flex: none;
    }
    
    .col-md-7 {
        min-height: auto;
        padding: 20px 15px;
        order: 1;
        width: 100%;
        flex: none;
    }
    
    .logo {
        margin-bottom: 15px;
        text-align: center;
    }
    
    .logo img {
        max-width: 120px;
        max-height: 100px;
        width: auto;
        height: auto;
    }
    
    .merk {
        font-size: 14pt;
        margin-top: 10px;
        text-align: center;
    }
    
    .school {
        font-size: 11pt;
        margin-top: 5px;
        text-align: center;
    }
    
    .box {
        padding: 30px 20px;
        margin: 10px 0;
        width: 100%;
        max-width: 100%;
    }
    
    .title-login {
        font-size: 20pt;
        margin-bottom: 25px;
        text-align: center;
    }
    
    .form-group {
        margin-bottom: 15px;
    }
    
    .form-control.flat {
        height: 45px;
        font-size: 14px;
        width: 100%;
    }
    
    .btn-login {
        height: 45px;
        font-size: 16px;
        width: 100%;
    }
    
    .col-md-6 {
        width: 100%;
        padding: 0;
        margin-bottom: 15px;
    }
    
    .form-col {
        min-width: 100%;
        margin-bottom: 20px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .col-md-5,
    .col-md-7 {
        padding: 15px 10px;
    }
    
    .logo img {
        max-width: 100px;
        max-height: 80px;
    }
    
    .merk {
        font-size: 12pt;
        margin-top: 8px;
    }
    
    .school {
        font-size: 10pt;
        margin-top: 3px;
    }
    
    .box {
        padding: 25px 15px;
        margin: 5px 0;
    }
    
    .title-login {
        font-size: 18pt;
        margin-bottom: 20px;
    }
    
    .form-control.flat {
        height: 40px;
        font-size: 13px;
    }
    
    .btn-login {
        height: 40px;
        font-size: 14px;
    }
}

/* Tablet Portrait */
@media (min-width: 481px) and (max-width: 768px) {
    .col-md-5 {
        padding: 25px 20px;
    }
    
    .col-md-7 {
        padding: 25px 20px;
    }
    
    .logo img {
        max-width: 140px;
        max-height: 110px;
    }
    
    .merk {
        font-size: 16pt;
    }
    
    .school {
        font-size: 12pt;
    }
    
    .box {
        padding: 35px 25px;
    }
    
    .title-login {
        font-size: 22pt;
    }
}

/* Tablet Responsive */
@media (min-width: 769px) and (max-width: 1024px) {
    .col-md-5 {
        padding: 50px 30px;
    }
    
    .col-md-7 {
        padding: 50px 30px;
    }
    
    .box {
        padding: 50px 35px;
    }
    
    .title-login {
        font-size: 26pt;
    }
}

/* Large Desktop */
@media (min-width: 1200px) {
    .col-md-5 {
        padding: 60px 40px;
    }
    
    .col-md-7 {
        padding: 60px 40px;
    }
    
    .box {
        padding: 70px 50px;
    }
    
    .title-login {
        font-size: 30pt;
    }
}

/* Force responsive behavior */
@media (max-width: 991px) {
    .col-md-5,
    .col-md-7 {
        width: 100% !important;
        flex: none !important;
        max-width: 100% !important;
    }
    
    .col-md-6 {
        width: 100% !important;
        flex: none !important;
        max-width: 100% !important;
    }
}

/* Ensure proper mobile layout */
@media (max-width: 768px) {
    .col-md-5 {
        order: 2;
        min-height: auto;
        padding: 20px 15px;
    }
    
    .col-md-7 {
        order: 1;
        min-height: auto;
        padding: 20px 15px;
    }
}

/* Additional mobile fixes */
@media (max-width: 576px) {
    .container-fluid {
        padding: 0;
        margin: 0;
    }
    
    .row {
        margin: 0;
        padding: 0;
    }
    
    .col-md-5,
    .col-md-7 {
        padding: 15px 10px;
        margin: 0;
    }
    
    .box {
        margin: 0;
        padding: 20px 15px;
    }
}