/* --- BASE RESET --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #e8f0f8 0%, #f4f7fa 50%, #e0e9f2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow-x: hidden;
}

/* Background Pattern */
body::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle, #d4af37 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.03;
    z-index: 0;
}

.login-wrapper {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 950px;
}

/* --- MAIN CONTAINER --- */
.login-container {
    display: flex;
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(12, 28, 53, 0.15);
    min-height: 550px;
}

/* --- LEFT PANEL --- */
.login-brand-panel {
    flex: 0 0 350px;
    background: linear-gradient(160deg, #9c7803 0%, #dba904 100%);
    padding: 60px 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-content {
    text-align: center;
    color: #ffffff;
}

.brand-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
}

.brand-icon i {
    font-size: 36px;
}

.brand-content h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 28px;
    font-weight: 700;
}

/* --- RIGHT PANEL --- */
.login-form-panel {
    flex: 1;
    padding: 60px 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.form-wrapper {
    width: 100%;
    max-width: 400px;
}

/* HEADER */
.login-header {
    margin-bottom: 30px;
}

.login-header h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 30px;
    font-weight: 700;
    color: #0c1c35;
}

.login-header p {
    font-size: 14px;
    color: #6b7280;
}

/* INPUT */
.form-floating-custom {
    position: relative;
    margin-bottom: 22px;
}

.input-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    z-index: 2;
}

.form-input {
    width: 100%;
    padding: 22px 20px 10px 50px;
    font-size: 14px;
    font-weight: 500;
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    outline: none;
    transition: 0.3s;
}

.form-input:focus {
    background: #ffffff;
    border-color: #0056b3;
    box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.08);
}

.floating-label {
    position: absolute;
    left: 50px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    color: #9ca3af;
    transition: 0.2s;
}

/* FLOAT EFFECT */
.form-input:focus ~ .floating-label,
.form-input:not(:placeholder-shown) ~ .floating-label {
    top: 12px;
    font-size: 10px;
    color: #0056b3;
    font-weight: 700;
}

/* PASSWORD */
.password-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: none;
    color: #9ca3af;
}

/* BUTTON */
.btn-submit {
    width: 100%;
    padding: 14px;
    background: #0c1c35;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
}

.btn-submit:hover {
    background: #0056b3;
    transform: translateY(-2px);
}

/* FOOTER */
.form-divider {
    text-align: center;
    margin: 20px 0;
}

.form-divider span {
    font-size: 13px;
    color: #9ca3af;
}

.form-footer {
    text-align: center;
}

.signup-link {
    color: #0056b3;
    font-weight: 600;
}

/* =========================
   🔥 RESPONSIVE FIXES
========================= */

/* LARGE TABLETS */
@media (max-width: 992px) {
    .login-container {
        flex-direction: column;
        min-height: auto;
    }

    .login-brand-panel {
        width: 100%;
        flex: none;
        padding: 40px 20px;
    }

    .login-form-panel {
        padding: 40px 30px;
    }
}

/* TABLETS */
@media (max-width: 768px) {
    body {
        padding: 15px;
    }

    .login-wrapper {
        max-width: 100%;
    }

    .login-container {
        border-radius: 15px;
    }

    .login-header h1 {
        font-size: 26px;
    }

    .login-form-panel {
        padding: 30px 20px;
    }
}

/* MOBILE */
@media (max-width: 480px) {
    body {
        padding: 10px;
    }

    .login-container {
        border-radius: 12px;
    }

    .login-brand-panel {
        padding: 25px 15px;
    }

    .brand-icon {
        width: 60px;
        height: 60px;
    }

    .brand-icon i {
        font-size: 24px;
    }

    .brand-content h2 {
        font-size: 20px;
    }

    .login-header h1 {
        font-size: 22px;
    }

    .login-header p {
        font-size: 12px;
    }

    .form-input {
        font-size: 13px;
        padding: 20px 15px 8px 45px;
    }

    .floating-label {
        font-size: 12px;
    }

    .btn-submit {
        font-size: 14px;
        padding: 12px;
    }
}