/*
 * 4tonic branding for SFTPGo 2.7.x (WebAdmin + WebClient)
 * Load via httpd.bindings[].branding.{web_admin,web_client}.extra_css = ["/branding/4tonic.css"]
 *
 * Brand palette (sampled from the 4tonic logo):
 *   navy   #262262   wordmark
 *   purple #662d91
 *   blue   #27aae1
 *   yellow #fbca00
 *   red    #e30041
 */

/* ---- Theme colours: light ---- */
:root,
[data-bs-theme=light] {
    --bs-primary: #662d91;
    --bs-primary-rgb: 102, 45, 145;
    --bs-primary-active: #52247a;
    --bs-primary-light: #f2ebf8;
    --bs-primary-clarity: rgba(102, 45, 145, 0.2);
    --bs-primary-inverse: #ffffff;
    --bs-link-color: #662d91;
    --bs-link-color-rgb: 102, 45, 145;
    --bs-link-hover-color: #52247a;
    --bs-link-hover-color-rgb: 82, 36, 122;
    --bs-app-sidebar-base-bg-color: #262262;
    --bs-app-blank-bg-color: #262262;
}

/* ---- Theme colours: dark ---- */
[data-bs-theme=dark] {
    --bs-primary: #8a55bd;
    --bs-primary-rgb: 138, 85, 189;
    --bs-primary-active: #9d6bcc;
    --bs-primary-light: #2a1f3a;
    --bs-primary-clarity: rgba(138, 85, 189, 0.2);
    --bs-primary-inverse: #ffffff;
    --bs-link-color: #b58ee0;
    --bs-link-color-rgb: 181, 142, 224;
    --bs-link-hover-color: #cbaeea;
    --bs-link-hover-color-rgb: 203, 174, 234;
    --bs-app-sidebar-base-bg-color: #1a1745;
    --bs-app-blank-bg-color: #15132f;
}

/* ---- Login / forgot-password pages ---- */
/* Login card: brand colour strip across the top */
body.app-blank #app_root .shadow-sm {
    position: relative;
    overflow: hidden;
}

body.app-blank #app_root .shadow-sm::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg,
        #27aae1 0 25%, #fbca00 25% 50%, #662d91 50% 75%, #e30041 75% 100%);
}

/* Product name next to the logo on the login page */
body.app-blank h1.text-gray-900 {
    color: #262262 !important;
    font-weight: 700;
}

[data-bs-theme=dark] body.app-blank h1.text-gray-900 {
    color: #ffffff !important;
}

/* ---- Focus rings in brand colour ---- */
.form-control:focus,
.form-select:focus {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 0.2rem var(--bs-primary-clarity);
}

