/* ========================================
   FacTech POS - Login Two-Panel Layout 2026
   ======================================== */

/* --- Override AdminLTE login-page --- */
.login-page {
    background: #f0f2f5 !important;
    min-height: 100vh !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
}

/* Hide AdminLTE default login-box wrapper */
.login-box {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

.login-box .login-box-body,
.login-box .card {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.login-box .card .card-body {
    padding: 0 !important;
}

/* --- Two-Panel Wrapper --- */
.login-wrapper {
    display: flex;
    width: 960px;
    max-width: 96vw;
    min-height: 580px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.18), 0 8px 32px rgba(0, 0, 0, 0.08);
}

/* ===== LEFT PANEL — Dark Branding ===== */
.login-panel-left {
    flex: 0 0 420px;
    background: linear-gradient(160deg, #0B1A3E 0%, #0B2EA3 60%, #0F64EA 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 40px;
    position: relative;
    overflow: hidden;
}

/* Decorative circles */
.login-panel-circles .circle {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(29, 214, 231, 0.12);
}

.login-panel-circles .circle-1 {
    width: 300px;
    height: 300px;
    top: -80px;
    right: -100px;
    background: radial-gradient(circle, rgba(29, 214, 231, 0.06) 0%, transparent 70%);
}

.login-panel-circles .circle-2 {
    width: 200px;
    height: 200px;
    bottom: -40px;
    left: -60px;
    background: radial-gradient(circle, rgba(15, 100, 234, 0.1) 0%, transparent 70%);
}

.login-panel-circles .circle-3 {
    width: 120px;
    height: 120px;
    top: 40%;
    left: 10%;
    background: radial-gradient(circle, rgba(29, 214, 231, 0.05) 0%, transparent 70%);
    border: 1px solid rgba(29, 214, 231, 0.08);
}

.login-panel-brand {
    text-align: center;
    position: relative;
    z-index: 1;
}

.login-panel-logo {
    width: 100%;
    max-width: 380px;
    height: auto;
    margin-bottom: 10px;
    filter: drop-shadow(0 0 24px rgba(255, 255, 255, 0.4)) drop-shadow(0 0 60px rgba(29, 214, 231, 0.5));
}


.login-panel-tagline {
    font-size: 14px;
    color: rgba(29, 214, 231, 0.9);
    font-weight: 400;
    letter-spacing: 0.5px;
    margin: 0 0 40px;
}

/* Feature list on left panel */
.login-panel-features {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
    max-width: 240px;
}

.login-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.75);
    font-size: 13px;
    font-weight: 400;
}

.login-feature i {
    font-size: 14px;
    color: #1DD6E7;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(29, 214, 231, 0.1);
    border-radius: 8px;
    flex-shrink: 0;
}

.login-panel-footer {
    position: absolute;
    bottom: 24px;
    z-index: 1;
}

.login-panel-footer a {
    color: rgba(255, 255, 255, 0.35);
    font-size: 12px;
    text-decoration: none;
    transition: color 0.2s;
}

.login-panel-footer a:hover {
    color: rgba(255, 255, 255, 0.6);
}

/* ===== RIGHT PANEL — White Form ===== */
.login-panel-right {
    flex: 1;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 44px;
}

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

.login-form-title {
    font-size: 26px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 6px;
}

.login-form-subtitle {
    font-size: 14px;
    color: #9ca3af;
    margin: 0 0 32px;
    font-weight: 400;
}

/* --- Form Fields --- */
.login-form-container .form-group {
    margin-bottom: 20px;
}

.login-form-container .form-group label {
    font-size: 12px;
    font-weight: 600;
    color: #374151;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
    display: block;
}

.login-form-container .form-control {
    border-radius: 10px !important;
    border: 1.5px solid #e5e7eb !important;
    padding: 11px 14px !important;
    font-size: 14px !important;
    height: auto !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
    background: #f9fafb !important;
    color: #111827 !important;
}

.login-form-container .form-control:focus {
    border-color: #0F64EA !important;
    box-shadow: 0 0 0 3px rgba(15, 100, 234, 0.1) !important;
    background: #ffffff !important;
}

.login-form-container .input-group .btn {
    border-radius: 0 10px 10px 0 !important;
    border: 1.5px solid #e5e7eb !important;
    border-left: none !important;
    background: #f9fafb !important;
    color: #6b7280 !important;
    padding: 11px 14px !important;
    transition: all 0.2s ease !important;
}

.login-form-container .input-group .btn:hover {
    background: #0F64EA !important;
    border-color: #0F64EA !important;
    color: #ffffff !important;
}

.login-form-container .input-group .form-control {
    border-radius: 10px 0 0 10px !important;
}

/* --- Login Button --- */
.btn-login {
    background: linear-gradient(135deg, #0F64EA 0%, #0B2EA3 100%) !important;
    border: none !important;
    border-radius: 10px !important;
    padding: 12px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    letter-spacing: 0.3px !important;
    box-shadow: 0 4px 14px rgba(15, 100, 234, 0.3) !important;
    transition: all 0.25s ease !important;
    margin-top: 8px !important;
    color: #ffffff !important;
}

.btn-login:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 22px rgba(15, 100, 234, 0.4) !important;
}

/* --- Forgot Password --- */
.login-forgot {
    text-align: center;
    margin-top: 20px;
    font-size: 13px;
    color: #9ca3af;
}

.login-forgot a {
    color: #0F64EA !important;
    font-weight: 500;
    text-decoration: none !important;
    transition: color 0.2s ease;
}

.login-forgot a:hover {
    color: #0B2EA3 !important;
}

/* --- Form Footer --- */
.login-form-footer {
    text-align: center;
    margin-top: 28px;
    padding-top: 18px;
    border-top: 1px solid #f3f4f6;
}

.login-form-footer span {
    font-size: 12px;
    color: #9ca3af;
}

.login-form-footer a {
    color: #6b7280;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.login-form-footer a:hover {
    color: #0F64EA;
}

/* ===== RESET PASSWORD — Two Panel ===== */
.login-box .login-box-body .card .card-body .login-brand {
    display: none !important;
}

/* ===== LOCKSCREEN ===== */
.lockscreen-wrapper {
    width: 420px;
    margin: 0 auto;
}

.lockscreen-logo a {
    color: #ffffff !important;
    font-size: 28px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
}

.lockscreen-logo .lockscreen-logo-img {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    vertical-align: middle;
    margin-right: 10px;
}

.lockscreen-name {
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 14px !important;
    margin-bottom: 16px !important;
}

.lockscreen-item {
    background: #ffffff !important;
    border-radius: 16px !important;
    padding: 20px !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3) !important;
}

.lockscreen-item .btn-primary {
    background: linear-gradient(135deg, #0F64EA 0%, #0B2EA3 100%) !important;
    border: none !important;
    border-radius: 10px !important;
    padding: 10px !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 12px rgba(15, 100, 234, 0.3) !important;
}

.lockscreen-image img {
    border-radius: 12px !important;
    width: 60px !important;
    height: 60px !important;
    object-fit: cover !important;
    box-shadow: none !important;
    border: none !important;
}

.help-block {
    color: rgba(255, 255, 255, 0.5) !important;
    font-size: 13px !important;
    margin-top: 14px !important;
}

.lockscreen-footer {
    color: rgba(255, 255, 255, 0.4) !important;
    font-size: 12px !important;
    margin-top: 24px !important;
}

.lockscreen-footer a {
    color: rgba(255, 255, 255, 0.5) !important;
}

/* --- Hide old stuff --- */
.contact-image {
    display: none;
}

.login-box-msg {
    display: none;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .login-wrapper {
        flex-direction: column;
        min-height: auto;
        max-width: 100vw;
        border-radius: 0;
        box-shadow: none;
    }

    .login-panel-left {
        flex: 0 0 auto;
        padding: 36px 28px 32px;
    }

    .login-panel-tagline {
        margin-bottom: 0;
    }

    .login-panel-features {
        display: none;
    }

    /* El logo es horizontal (697x200): nunca fijar alto, solo ancho */
    .login-panel-logo {
        width: 100%;
        max-width: 260px;
        height: auto;
    }

    .login-panel-footer {
        display: none;
    }

    .login-panel-right {
        padding: 32px 24px;
    }

    .login-form-title {
        font-size: 22px;
    }

    .lockscreen-wrapper {
        width: 92%;
    }
}

@media (max-width: 480px) {
    .login-panel-left {
        padding: 28px 20px 24px;
    }

    .login-panel-right {
        padding: 28px 20px;
    }
}
