/* ================= GLOBAL ================= */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
    overflow: hidden;
}

body {
    margin: 0;
    font-family: "Segoe UI", sans-serif;
    background: #fff !important;
}

/* ================= HEADER ================= */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 60px;
    background: white;
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.2);
    position: relative;
    z-index: 10;
}

.logo {
    font-size: 22px;
    font-weight: 700;
    color: #2563eb;
}

.logo span {
    color: #0b1f59;
}

/* ================= MAIN ================= */
.main {
    display: flex;
    height: calc(100vh - 82px);
    background: #fff !important;
}

/* ================= LEFT ================= */
.left {
    width: 53%;
    text-align: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 0;
}

.carousel {
    position: relative;
    height: 420px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: -20px;
}

.slide {
    position: absolute;
    width: 100%;
    opacity: 0;
    transition: opacity 1s ease;
    text-align: center;
}

.slide.active {
    opacity: 1;
}

.slide img {
    max-width: 460px;
    margin-bottom: 15px;
    filter: drop-shadow(0 10px 15px rgba(37, 99, 235, 0.2));
}

.slide h2 {
    font-size: 18px;
    margin-bottom: 8px;
    color: #0b1f59;
    font-weight: 600;
}

.slide p {
    color: #666;
    font-size: 12px;
}

/* ================= RIGHT ================= */
.login-wrapper {
    width: 42%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 0;
}

/* ================= LOGIN CARD ================= */
.login-card {
    width: 420px;
    background: white;
    padding: 35px 40px 40px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.2);
    border: 1px solid rgba(37, 99, 235, 0.3);
}

/* Title - BLUE THEME */
.title {
    text-align: center;
    color: #2563eb;
    font-size: 26px;
    font-weight: 600;
    margin-bottom: 5px;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 4px rgba(37, 99, 235, 0.2);
}

.subtitle {
    text-align: center;
    font-size: 13px;
    color: #777;
    margin-bottom: 25px;
}

/* Form - BLUE THEME */
.form-group {
    margin-bottom: 18px;
}

label {
    font-size: 14px;
    color: #444;
    font-weight: 500;
    display: block;
    margin-bottom: 5px;
}

input {
    width: 100%;
    padding: 12px 15px;
    border-radius: 10px;
    border: 1px solid #489bd4;
    font-size: 14px;
    transition: all 0.3s ease;
    background: #0d94f312;
}

input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    background: white;
}

/* Password field with eye */
.password-wrapper {
    position: relative;
    width: 100%;
}

.password-wrapper input {
    width: 100%;
    padding: 12px 40px 12px 15px;
}

.password-wrapper i {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    color: #2563eb;
    cursor: pointer;
    transition: color 0.3s;
}

.password-wrapper i:hover {
    color: #1d4ed8;
}

/* Login button - BLUE THEME */
.login-btn-row {
    display: flex;
    justify-content: center;
    margin-top: 25px;
}

.login-btn {
    background: #2563eb;
    color: #ffffff;
    border: none;
    padding: 12px 40px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    width: 50%;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.3);
    letter-spacing: 0.5px;
}

.login-btn:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.4);
}

/* Demo username field - BLUE THEME */
.demo-credentials {
    margin-top: 20px;
    padding: 12px;
    background: #0d94f326;
    border-radius: 10px;
    border-left: 3px solid #2563eb;
}

.demo-credentials p {
    font-size: 12px;
    color: #666;
}

.demo-credentials strong {
    color: #2563eb;
    font-size: 13px;
}

/* Error message */
.error-msg {
    color: #ff4444;
    text-align: center;
    font-size: 13px;
    margin: 10px 0;
    padding: 8px;
    background: #ffeeee;
    border-radius: 6px;
}

.field-error {
    margin-top: 6px;
    color: #e74c3c;
    font-size: 11px;
}

/* ================= FOOTER ================= */
.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    background: white;
    border-top: 1px solid #e5e7eb;
}

.footer span {
    color: #999;
    font-size: 12px;
}

.store {
    display: flex;
    gap: 10px;
}

.store img {
    height: 30px;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.store img:hover {
    opacity: 1;
}

/* ================= SCROLLBAR ================= */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #489bd4;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #2563eb;
}

::selection {
    background: #2563eb;
    color: white;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 1024px) {
    .login-card {
        width: 380px;
        padding: 30px 30px 35px;
    }
    
    .carousel {
        margin-top: -15px;
    }
}

@media (max-width: 900px) {
    .left {
        display: none;
    }
    
    .login-wrapper {
        width: 100%;
    }
    
    .login-card {
        width: 420px;
    }
}

@media (max-width: 600px) {
    html, body {
        overflow: auto;
    }
    
    .header {
        padding: 15px 20px;
    }
    
    .login-card {
        width: 90%;
        padding: 30px 20px;
        margin: 20px auto;
    }
    
    .footer {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .carousel {
        margin-top: 0;
    }
}