/* Reduce logo size on login page */
.h-80px { height: 50px !important; }
.h-md-90px { height: 55px !important; }
.h-lg-100px { height: 60px !important; }

/* Stack logo and text vertically on login page */
#sign_in_form .container .row {
    flex-direction: column !important;
    text-align: center !important;
}
#sign_in_form .container .row .col-5,
#sign_in_form .container .row .col-7 {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
    text-align: center !important;
}
#sign_in_form .container .row .col-7 h1 {
    margin-left: 0 !important;
    font-size: 1.4rem !important;
}

/* Light background behind logo in dark mode login page */
[data-bs-theme="dark"] img[alt="Logo"] {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    padding: 6px 12px;
}

/* Sidebar: make logo bigger and add light background */
.app-sidebar-logo img[alt="Logo"] {
    height: 55px !important;
    background: rgba(255, 255, 255, 0.9) !important;
    border-radius: 6px !important;
    padding: 4px 8px !important;
}

/* Sidebar: stack logo and text vertically */
.app-sidebar-logo {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 6px !important;
}

/* Sidebar: remove left padding on text, keep it centered below logo */
.app-sidebar-logo .text-sidebar {
    padding-left: 0 !important;
    white-space: nowrap !important;
}

/* Hide language switcher */
#languageSwitcher { display: none !important; }

/* Hide the entire bottom bar below the sign-in button */
#sign_in_form + hr { display: none !important; }
#sign_in_form + hr + .d-flex { display: none !important; }

/* Hide SFTPGo version footer */
.app-footer, footer, .footer {
    display: none !important;
}
