/**
 * TiCON Cloud auth pages (login / register / forgot password)
 * Palette taken from the TiCON logo:
 *   navy #313B58, blue #226DB5, indigo #40489D, lime #A3BF3B
 */
:root {
    --lg-ink: #313B58;
    --lg-blue: #226DB5;
    --lg-blue-soft: #4177BB;
    --lg-indigo: #40489D;
    --lg-lime: #A3BF3B;
    --lg-bg: #F4F6FA;
    --lg-muted: #6B7280;
    --lg-border: #DDE2EA;
}

html, body {
    height: 100%;
}

body.bo-login-body {
    margin: 0;
    background:
        radial-gradient(ellipse 60% 45% at 85% 8%, rgba(34, 109, 181, 0.10), transparent 60%),
        radial-gradient(ellipse 50% 40% at 8% 90%, rgba(163, 191, 59, 0.12), transparent 60%),
        var(--lg-bg);
    font-family: "Nunito", "Inter", sans-serif;
    position: relative;
    overflow-x: hidden;
}

/* ---- Decorative circles in logo tints ---- */
.bo-deco {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}
.bo-deco-dots-blue {
    background-image: radial-gradient(rgba(34, 109, 181, 0.16) 2.2px, transparent 2.6px);
    background-size: 16px 16px;
    -webkit-mask-image: radial-gradient(circle, #000 55%, transparent 72%);
    mask-image: radial-gradient(circle, #000 55%, transparent 72%);
}
.bo-deco-dots-lime {
    background-image: radial-gradient(rgba(163, 191, 59, 0.22) 2.2px, transparent 2.6px);
    background-size: 16px 16px;
    -webkit-mask-image: radial-gradient(circle, #000 55%, transparent 72%);
    mask-image: radial-gradient(circle, #000 55%, transparent 72%);
}
.bo-deco-1 { width: 360px; height: 360px; top: -80px;  right: -60px; }
.bo-deco-2 { width: 280px; height: 280px; bottom: 30px; left: -80px; }
.bo-deco-4 { width: 120px; height: 120px; top: 16%;    left: 20%; }

/* ---- Layout ---- */
.bo-login-wrap {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 16px 40px;
}

.bo-card {
    width: 100%;
    max-width: 440px;
    background: #FFFFFF;
    border-radius: 20px;
    box-shadow: 0 18px 44px rgba(49, 59, 88, 0.12);
    overflow: hidden;
}

.bo-card.bo-card-wide {
    max-width: 500px;
}

/* Logo color ramp along the top edge */
.bo-card-bar {
    height: 5px;
    background: linear-gradient(90deg, var(--lg-ink), var(--lg-blue), var(--lg-indigo), var(--lg-lime));
}

.bo-card-body {
    padding: 38px 44px 40px;
}

.bo-brand {
    text-align: center;
    margin-bottom: 8px;
}
.bo-brand img { height: 46px; }

.bo-title {
    text-align: center;
    margin: 10px 0 26px;
}
.bo-title h1 {
    font-size: 21px;
    font-weight: 800;
    color: var(--lg-ink);
    margin: 0 0 4px;
}
.bo-title p {
    font-size: 13px;
    color: var(--lg-muted);
    margin: 0;
}

/* ---- Inputs with leading icon ---- */
.bo-field {
    position: relative;
    margin-bottom: 16px;
}
.bo-field > i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 17px;
    color: var(--lg-blue);
    pointer-events: none;
}
.bo-field input {
    width: 100%;
    height: 46px;
    border: 1px solid var(--lg-border);
    border-radius: 12px;
    padding: 0 42px 0 42px;
    font-size: 14px;
    color: var(--lg-ink);
    background: #FFFFFF;
    box-shadow: none;
    outline: none;
}
.bo-field input::placeholder { color: #A8AEB8; }
.bo-field input:focus {
    border-color: var(--lg-blue);
    box-shadow: 0 0 0 0.18rem rgba(34, 109, 181, 0.14);
}
.bo-eye {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 17px;
    color: #A8AEB8;
    cursor: pointer;
    user-select: none;
}
.bo-eye:hover { color: var(--lg-blue); }

/* Plain labeled fields (no icon) */
.bo-label {
    display: block;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--lg-ink);
    margin-bottom: 6px;
    letter-spacing: 0.3px;
}

/* ---- Buttons ---- */
.bo-submit {
    width: 100%;
    margin-top: 12px;
    border: none;
    border-radius: 12px;
    padding: 12px 0;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 1.2px;
    color: #FFFFFF;
    background: linear-gradient(135deg, var(--lg-blue) 0%, var(--lg-indigo) 100%);
    transition: filter 0.15s ease, transform 0.1s ease;
}
.bo-submit:hover:not(:disabled) { filter: brightness(1.08); }
.bo-submit:active { transform: scale(0.99); }
.bo-submit:disabled { opacity: 0.65; }

.bo-btn-ghost {
    width: 100%;
    margin-top: 10px;
    border: 1px solid var(--lg-border);
    border-radius: 12px;
    padding: 11px 0;
    font-size: 14px;
    font-weight: 700;
    color: var(--lg-ink);
    background: #FFFFFF;
    transition: border-color 0.15s ease, color 0.15s ease;
}
.bo-btn-ghost:hover:not(:disabled) {
    border-color: var(--lg-blue);
    color: var(--lg-blue);
}
.bo-btn-ghost:disabled { opacity: 0.6; }

.bo-btn-link {
    display: inline-block;
    width: 100%;
    margin-top: 8px;
    border: none;
    background: none;
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    color: var(--lg-muted);
    text-decoration: none;
}
.bo-btn-link:hover { color: var(--lg-blue); }

/* ---- Checkbox / link row under the form ---- */
.bo-under {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 18px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--lg-ink);
}
.bo-under .form-check-input {
    width: 15px;
    height: 15px;
    margin-top: 0;
    border: 1.5px solid var(--lg-lime);
    border-radius: 3px;
    cursor: pointer;
}
.bo-under .form-check-input:checked {
    background-color: var(--lg-lime);
    border-color: var(--lg-lime);
}
.bo-under label { cursor: pointer; }
.bo-save-id {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.bo-under a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--lg-blue);
    text-decoration: none;
}
.bo-under a:hover { color: var(--lg-indigo); }

/* ---- Links below the card ---- */
.bo-links {
    margin-top: 24px;
    text-align: center;
    font-size: 13px;
    color: var(--lg-muted);
}
.bo-links a { color: var(--lg-blue); font-weight: 700; text-decoration: none; }
.bo-links a:hover { color: var(--lg-indigo); }
.bo-links p { margin: 4px 0; }

.bo-alerts { margin-bottom: 8px; }
.bo-alerts p { font-size: 13px; margin-bottom: 8px; }

.bo-footer {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 14px;
    font-size: 12px;
    color: #98A2B3;
}

@media (max-width: 480px) {
    .bo-card-body { padding: 30px 24px 28px; }
}
