.login-container {
    display: flex;
    flex-direction: row-reverse;
    min-height: 100vh;
    position: relative;
}

.login-left {
    flex: 1;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 40px 60px 0;
    position: relative;
    z-index: 2;
    min-height: 100vh;
}

.login-form {
    width: 100%;
    max-width: 420px;
}

.logo-section {
    text-align: center;
    margin-bottom: 40px;
}

.welcome-text {
    color: #64748b;
    font-size: 14px;
    margin-bottom: 12px;
    font-weight: 400;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.logo {
    font-size: 32px;
    font-weight: 700;
    color: #1e40af;
    margin-bottom: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    letter-spacing: 1px;
}

.logo-image {
    height: 25px;
    width: auto;
    object-fit: contain;
}

.logo-text {
    font-size: 28px;
    font-weight: 700;
    color: #1e40af;
    letter-spacing: 1px;
}

.subtitle {
    color: #94a3b8;
    font-size: 15px;
    font-weight: 400;
    margin-bottom: 30px;
    line-height: 1.5;
}

.row {
    display: flex;
    gap: 15px;
    margin-bottom: 0;
}

.col-12 {
    flex: 1;
}

.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-input {
    width: 100%;
    padding: 16px 50px 16px 44px;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    font-size: 15px;
    color: #1e293b;
    transition: all 0.3s ease;
    background: #f8fafc;
    outline: none;
}

.form-input:focus {
    border-color: #1e40af;
    background: white;
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

.form-input::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

.input-icon {
    z-index: 2;
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 16px;
    pointer-events: none;
}

.password-toggle {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    cursor: pointer;
    font-size: 16px;
    transition: color 0.3s ease;
}

.password-toggle:hover {
    color: #1e40af;
}

.remember-forgot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px 0;
    font-size: 14px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #64748b;
}

.remember-me input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #1e40af;
}

.forgot-link {
    color: #1e40af;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.forgot-link:hover {
    color: #1e3a8a;
    text-decoration: underline;
}

.login-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #1e40af, #3b82f6);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    position: relative;
    overflow: hidden;
}

.login-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.login-btn:hover::before {
    left: 100%;
}

.login-btn:hover {
    box-shadow: 0 8px 25px rgba(30, 64, 175, 0.3);
}

.text-center {
    text-align: center;
}

.pt-2 {
    padding-top: 0.5rem;
}

.text-info {
    color: #1e40af;
    text-decoration: none;
    font-weight: 600;
}

.text-info:hover {
    color: #1e3a8a;
    text-decoration: underline;
}

/* Password Requirements */
#password_requirements {
    margin-bottom: 20px;
}

#password_requirements h6 {
    color: #1e40af;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 10px;
}

.list-group {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.list-group-item {
    padding: 8px 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 8px;
}

.kmk-checkbox {
    width: 14px;
    height: 14px;
    accent-color: #1e40af;
}

.custom-control-label {
    font-size: 12px;
    color: #64748b;
    margin: 0;
}

.d-none {
    display: none;
}

.mb-3 {
    margin-bottom: 1rem;
}

.text-dark {
    color: #1e293b;
}

.login-right {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    overflow: hidden;
    min-height: 100vh;
}

.right-content {
    text-align: center;
    z-index: 2;
    max-width: 750px;
    padding: 40px 30px;
    width: 100%;
}

.right-content img {
    width: 85%;
    max-width: 800px;
    height: auto;
    margin: 0 auto 0;
    margin-left: 15px;
    display: block;
    object-fit: contain;
}

.d-flex {
    display: flex;
}

.flex-column {
    flex-direction: column;
}

.gap-1 {
    gap: 0.25rem;
}

.gap-4 {
    gap: 1.5rem;
}

.px-4 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.text-start {
    text-align: start;
}

.align-items-center {
    align-items: center;
}

.right-title {
    font-size: 33px;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: 1px;
    color: #ff6633;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.right-subtitle {
    font-size: 18px;
    color: #7b809a;
    line-height: 1.6;
    font-weight: 400;
}

.stats-bar {
    position: absolute;
    bottom: 40px;
    left: 40px;
    right: 40px;
    background: rgba(30, 64, 175, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    justify-content: space-around;
    border: 1px solid rgba(30, 64, 175, 0.2);
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 4px;
    color: #1e293b;
}

.stat-label {
    font-size: 12px;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* RESPONSIVE BREAKPOINTS */

/* Desktop Large - 1200px and above */
@media (min-width: 1200px) {
    .login-left {
        padding: 80px 60px 80px 40px;
    }

    .login-form {
        max-width: 450px;
    }

    .right-content {
        padding: 60px 40px;
    }
}

/* Tablet Large - 1024px and below */
@media (max-width: 1024px) {
    .login-left {
        padding: 50px 30px 50px 20px;
    }

    .right-content {
        padding: 30px 20px;
    }

    .logo-text {
        font-size: 26px;
    }

    .right-title {
        font-size: 28px;
    }

    .right-subtitle {
        font-size: 16px;
    }
}

/* Small Tablet/Large Mobile - 968px and below */
@media (max-width: 968px) {
    .login-container {
        flex-direction: column;
        min-height: 100vh;
    }

    .login-left {
        flex: none;
        min-height: auto;
        padding: 40px 20px !important;
        order: 1;
    }

    .login-right {
        flex: none;
        min-height: 300px;
        order: 2;
        justify-content: center;
    }

    .right-content {
        padding: 20px !important;
        width: 100%;
        max-width: 100%;
    }

    .right-content img {
        width: 70% !important;
        max-width: 400px !important;
        margin-left: 0 !important;
    }

    .logo-text {
        font-size: 24px;
    }

    .welcome-text {
        font-size: 13px;
    }

    .row {
        flex-direction: column;
        gap: 0;
    }

    .stats-bar {
        position: relative;
        bottom: auto;
        left: auto;
        right: auto;
        margin: 20px;
    }

    .d-flex.flex-column {
        padding: 0 20px !important;
    }

    .d-flex.gap-4 {
        flex-direction: column;
        gap: 10px !important;
        align-items: flex-start !important;
    }

    .right-title {
        font-size: 24px !important;
    }

    .right-subtitle {
        font-size: 14px !important;
    }

    .list-group {
        grid-template-columns: 1fr;
    }
}

/* Medium Mobile - 768px and below */
@media (max-width: 768px) {
    .login-container {
        flex-direction: column;
    }

    .login-left {
        padding: 30px 20px !important;
        flex: none;
        width: 100%;
        min-height: 100vh;
    }

    .login-form {
        max-width: 100%;
    }

    .logo-text {
        font-size: 22px;
    }

    .logo-image {
        height: 22px;
    }

    .form-input {
        padding: 14px 45px 14px 40px;
        font-size: 14px;
    }

    .input-icon {
        left: 14px;
        font-size: 15px;
    }

    .password-toggle {
        right: 14px;
        font-size: 15px;
    }

    .login-btn {
        padding: 14px;
        font-size: 14px;
    }

    .remember-forgot {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }

    .login-right {
        display: none;
    }

    .list-group {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .list-group-item {
        padding: 6px 10px;
    }

    .custom-control-label {
        font-size: 11px;
    }
}

/* Small Mobile - 480px and below */
@media (max-width: 480px) {
    .login-left {
        padding: 20px 15px !important;
    }

    .logo-section {
        margin-bottom: 30px;
    }

    .logo-text {
        font-size: 20px;
    }

    .logo-image {
        height: 20px;
    }

    .welcome-text {
        font-size: 12px;
    }

    .subtitle {
        font-size: 14px;
        margin-bottom: 25px;
    }

    .form-input {
        padding: 12px 40px 12px 35px;
        font-size: 13px;
        border-radius: 10px;
    }

    .input-icon {
        left: 12px;
        font-size: 14px;
    }

    .password-toggle {
        right: 12px;
        font-size: 14px;
    }

    .login-btn {
        padding: 12px;
        font-size: 13px;
        border-radius: 10px;
    }

    .remember-forgot {
        font-size: 13px;
        gap: 8px;
    }

    .remember-me input[type="checkbox"] {
        width: 14px;
        height: 14px;
    }

    .row {
        gap: 10px;
    }

    .list-group-item {
        padding: 5px 8px;
    }

    .custom-control-label {
        font-size: 10px;
    }

    .kmk-checkbox {
        width: 12px;
        height: 12px;
    }

    #password_requirements h6 {
        font-size: 12px;
    }
}

/* Very Small Mobile - 360px and below */
@media (max-width: 360px) {
    .login-left {
        padding: 15px 10px !important;
    }

    .logo-text {
        font-size: 18px;
    }

    .logo-image {
        height: 18px;
    }

    .subtitle {
        font-size: 13px;
    }

    .form-input {
        padding: 10px 35px 10px 30px;
        font-size: 12px;
    }

    .input-icon {
        left: 10px;
        font-size: 13px;
    }

    .password-toggle {
        right: 10px;
        font-size: 13px;
    }

    .login-btn {
        padding: 10px;
        font-size: 12px;
    }

    .remember-forgot {
        font-size: 12px;
    }

    .row {
        gap: 8px;
    }

    .list-group {
        gap: 4px;
    }

    .list-group-item {
        padding: 4px 6px;
    }

    .custom-control-label {
        font-size: 9px;
    }

    .kmk-checkbox {
        width: 10px;
        height: 10px;
    }

    #password_requirements h6 {
        font-size: 11px;
    }
}

/* Extra small devices (portrait phones, less than 320px) */
@media (max-width: 320px) {
    .login-left {
        padding: 10px 8px !important;
    }

    .logo-section {
        margin-bottom: 25px;
    }

    .logo-text {
        font-size: 16px;
    }

    .logo-image {
        height: 16px;
    }

    .welcome-text {
        font-size: 11px;
    }

    .subtitle {
        font-size: 12px;
        margin-bottom: 20px;
    }

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

    .form-input {
        padding: 8px 30px 8px 25px;
        font-size: 11px;
    }

    .input-icon {
        left: 8px;
        font-size: 12px;
    }

    .password-toggle {
        right: 8px;
        font-size: 12px;
    }

    .login-btn {
        padding: 8px;
        font-size: 11px;
    }

    .remember-forgot {
        font-size: 11px;
        gap: 5px;
    }

    .remember-me input[type="checkbox"] {
        width: 12px;
        height: 12px;
    }

    .row {
        gap: 5px;
    }

    .list-group {
        gap: 3px;
    }

    .list-group-item {
        padding: 3px 5px;
    }

    .custom-control-label {
        font-size: 8px;
    }

    .kmk-checkbox {
        width: 8px;
        height: 8px;
    }

    #password_requirements h6 {
        font-size: 10px;
        margin-bottom: 5px;
    }

    .pt-2 {
        padding-top: 0.3rem;
    }
}

/* Landscape orientation for mobile devices */
@media (max-height: 600px) and (orientation: landscape) and (max-width: 968px) {
    .login-container {
        flex-direction: row-reverse;
    }

    .login-left {
        min-height: 100vh;
        padding: 20px !important;
    }

    .login-right {
        min-height: 100vh;
    }

    .logo-section {
        margin-bottom: 20px;
    }

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

    .remember-forgot {
        margin: 15px 0;
    }

    .subtitle {
        margin-bottom: 20px;
    }

    .row {
        gap: 10px;
    }

    .list-group {
        grid-template-columns: repeat(2, 1fr);
        gap: 5px;
    }
}

/* Ultra-wide screens */
@media (min-width: 1600px) {
    .login-left {
        padding: 100px 80px 100px 60px;
    }

    .login-form {
        max-width: 500px;
    }

    .right-content {
        padding: 80px 60px;
    }
}

/* Print styles */
@media print {
    .login-right {
        display: none;
    }

    .login-left {
        flex: none;
        width: 100%;
        padding: 20px;
    }
}