/**
 * BiPanelCRM & BiHostNet Custom Signin Experience
 * Integrated with bihostnet.com design tokens
 */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
    --bh-primary: #095174;
    --bh-primary-dark: #073e5a;
    --bh-secondary: #0d9488;
    --bh-secondary-dark: #0b786e;
    --bh-accent-cyan: #06b6d4;
    --bh-accent-purple: #8b5cf6;
    --bh-dark-bg: #070d16;
    --bh-dark-surface: #0f172a;
    --bh-dark-surface-2: #1e293b;
    --bh-text-light: #f8fafc;
    --bh-text-muted: #94a3b8;
    --bh-border-dark: rgba(255, 255, 255, 0.08);
}

html, body.signin-page {
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    background-color: var(--bh-dark-bg) !important;
    background-image: radial-gradient(circle at 10% 20%, rgba(9, 81, 116, 0.35) 0%, transparent 40%),
                      radial-gradient(circle at 90% 80%, rgba(13, 148, 136, 0.25) 0%, transparent 40%) !important;
    background-attachment: fixed !important;
    min-height: 100vh !important;
    margin: 0 !important;
    padding: 0 !important;
    color: #1e293b !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Hide default RISE footer & scrollable wrappers on signin */
body.signin-page footer,
body.signin-page .footer,
body.signin-page .scrollable-page {
    display: none !important;
}

/* Background ambient glow shapes */
.signin-ambient-bg {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}
.signin-ambient-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.35;
    animation: blobFloat 14s ease-in-out infinite alternate;
}
.blob-1 {
    top: -100px;
    left: -100px;
    width: 550px;
    height: 550px;
    background: radial-gradient(circle, #095174, #070d16);
}
.blob-2 {
    bottom: -120px;
    right: -100px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, #0d9488, #070d16);
    animation-delay: -7s;
}

@keyframes blobFloat {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(40px, 30px) scale(1.08); }
}

/* Main Portal Wrapper */
.signin-portal-container {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 1140px;
    margin: auto;
    padding: 25px 15px;
    display: flex;
    justify-content: center;
}

.signin-portal-card {
    display: flex;
    flex-direction: row;
    background: #ffffff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.1);
    min-height: 640px;
    width: 100%;
}

/* Form Column (Left) */
.signin-form-col {
    flex: 0 0 46%;
    max-width: 46%;
    background: #ffffff;
    padding: 48px 42px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
}

.signin-brand-header {
    margin-bottom: 22px;
}

.signin-brand-header .site-logo-img {
    height: 44px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
    margin-bottom: 14px;
    display: inline-block;
}

.signin-portal-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 12px;
    border-radius: 20px;
    background: rgba(9, 81, 116, 0.08);
    color: var(--bh-primary);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.signin-portal-badge .badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--bh-secondary);
}

.signin-form-col h2.portal-title {
    font-size: 24px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 6px 0;
    letter-spacing: -0.5px;
}

.signin-form-col p.portal-subtitle {
    font-size: 14px;
    color: #64748b;
    margin: 0;
    line-height: 1.5;
}

/* Form Inputs */
.signin-input-group {
    position: relative;
    margin-bottom: 18px;
}

.signin-input-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 6px;
}

.input-with-icon {
    position: relative;
}

.input-with-icon .input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    width: 18px;
    height: 18px;
    pointer-events: none;
    transition: color .2s ease;
}

.input-with-icon input.form-control-modern {
    width: 100%;
    height: 48px;
    padding: 10px 42px 10px 44px;
    font-family: inherit;
    font-size: 14.5px;
    color: #0f172a;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    transition: all .2s ease;
    outline: none;
}

.input-with-icon input.form-control-modern:focus {
    background: #ffffff;
    border-color: var(--bh-primary);
    box-shadow: 0 0 0 4px rgba(9, 81, 116, 0.12);
}

.input-with-icon input.form-control-modern:focus + .input-icon,
.input-with-icon:focus-within .input-icon {
    color: var(--bh-primary);
}

/* Password Toggle Button */
.btn-toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #94a3b8;
    padding: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: color .2s ease;
}
.btn-toggle-password:hover {
    color: var(--bh-primary);
}
.btn-toggle-password svg {
    width: 18px;
    height: 18px;
}

/* Remember & Forgot Row */
.signin-options-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    font-size: 13.5px;
}

.signin-remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
    color: #475569;
    font-weight: 500;
    margin: 0;
}

.signin-remember-me input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--bh-primary);
    cursor: pointer;
}

.signin-forgot-link {
    color: var(--bh-primary);
    font-weight: 600;
    text-decoration: none;
    transition: color .2s ease;
}
.signin-forgot-link:hover {
    color: var(--bh-secondary);
    text-decoration: underline;
}

/* Submit Button */
.btn-signin-submit {
    width: 100%;
    height: 50px;
    font-family: inherit;
    font-size: 15.5px;
    font-weight: 700;
    color: #ffffff;
    background: linear-gradient(135deg, var(--bh-primary) 0%, var(--bh-secondary) 100%);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 10px 22px -5px rgba(9, 81, 116, 0.45);
    transition: all .25s ease;
}

.btn-signin-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px -4px rgba(13, 148, 136, 0.5);
    color: #ffffff;
}

.btn-signin-submit:active {
    transform: translateY(0);
}

.btn-signin-submit svg {
    width: 18px;
    height: 18px;
}

/* Error message styling */
.signin-error-box {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 13.5px;
    margin-bottom: 18px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.45;
}

/* Form Footer */
.signin-form-footer {
    margin-top: 25px;
    padding-top: 18px;
    border-top: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    color: #64748b;
}

.signin-form-footer a {
    color: #475569;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    transition: color .2s ease;
}

.signin-form-footer a:hover {
    color: var(--bh-primary);
}

.signin-ssl-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #059669;
    font-weight: 600;
}
.signin-ssl-badge svg {
    width: 14px;
    height: 14px;
    stroke: #059669;
}

/* Slider Column (Right) */
.signin-slider-col {
    flex: 0 0 54%;
    max-width: 54%;
    background: linear-gradient(160deg, #09192f 0%, #070d16 100%);
    padding: 48px 45px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    color: #ffffff;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
}

/* Ambient glow inside slider */
.slider-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(75px);
    pointer-events: none;
    opacity: 0.3;
}
.slider-glow-1 {
    top: -50px;
    right: -50px;
    width: 320px;
    height: 320px;
    background: #0d9488;
}
.slider-glow-2 {
    bottom: -60px;
    left: -50px;
    width: 350px;
    height: 350px;
    background: #095174;
}

/* Slider Header / Status Pill */
.slider-top-bar {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
}

.system-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: #34d399;
}

.system-status-pill .pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: statusPulse 2s infinite;
}

@keyframes statusPulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.slider-version-tag {
    font-size: 12px;
    font-weight: 700;
    color: #94a3b8;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 4px 10px;
    border-radius: 8px;
    letter-spacing: 0.3px;
}

/* Slider Content Area */
.slider-slides-wrapper {
    position: relative;
    z-index: 2;
    min-height: 290px;
    display: flex;
    align-items: center;
}

.slider-slide {
    position: absolute;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity .45s ease, transform .45s ease, visibility .45s;
    pointer-events: none;
}

.slider-slide.active-slide {
    position: relative;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.slide-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-bottom: 14px;
}

.slide-tag.tag-cyan {
    background: rgba(6, 182, 212, 0.15);
    color: #22d3ee;
    border: 1px solid rgba(6, 182, 212, 0.3);
}

.slide-tag.tag-teal {
    background: rgba(13, 148, 136, 0.18);
    color: #2dd4bf;
    border: 1px solid rgba(13, 148, 136, 0.35);
}

.slide-tag.tag-blue {
    background: rgba(59, 130, 246, 0.18);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.35);
}

.slide-tag.tag-purple {
    background: rgba(139, 92, 246, 0.18);
    color: #a78bfa;
    border: 1px solid rgba(139, 92, 246, 0.35);
}

.slide-tag svg {
    width: 14px;
    height: 14px;
}

.slider-slide h3.slide-title,
.signin-slider-col .slide-title {
    font-size: 26px;
    font-weight: 800;
    color: #ffffff !important;
    line-height: 1.3;
    margin: 0 0 12px 0;
    letter-spacing: -0.5px;
}

.slider-slide p.slide-desc {
    font-size: 14.5px;
    color: #cbd5e1;
    line-height: 1.6;
    margin: 0 0 18px 0;
}

.slide-features-list {
    list-style: none;
    padding: 0;
    margin: 0 0 10px 0;
}

.slide-features-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13.5px;
    color: #e2e8f0;
    margin-bottom: 10px;
    font-weight: 500;
}

.slide-features-list li .feature-icon {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(13, 148, 136, 0.25);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.slide-features-list li .feature-icon svg {
    width: 12px;
    height: 12px;
    stroke: #2dd4bf;
    stroke-width: 2.5px;
}

/* Slider Controls (Dots & Arrows) */
.slider-controls-row {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 25px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.slider-dots {
    display: flex;
    align-items: center;
    gap: 8px;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all .3s ease;
}

.slider-dot.active-dot {
    width: 28px;
    background: linear-gradient(90deg, #0d9488, #06b6d4);
}

.slider-arrows {
    display: flex;
    align-items: center;
    gap: 8px;
}

.slider-btn-nav {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all .2s ease;
    padding: 0;
}
.slider-btn-nav:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.25);
}
.slider-btn-nav svg {
    width: 16px;
    height: 16px;
    stroke: #ffffff;
    stroke-width: 2px;
}

/* Bottom Feature Badges */
.slider-bottom-badges {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 18px;
}

.bottom-badge-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 8px;
    font-size: 11.5px;
    color: #94a3b8;
    font-weight: 600;
}
.bottom-badge-item svg {
    width: 13px;
    height: 13px;
    stroke: #2dd4bf;
    stroke-width: 2px;
}

/* Responsive Rules */
@media (max-width: 991px) {
    .signin-portal-container {
        margin: 20px auto;
    }
    .signin-portal-card {
        flex-direction: column;
        max-width: 520px;
        margin: 0 auto;
    }
    .signin-form-col {
        flex: 0 0 100%;
        max-width: 100%;
        padding: 40px 30px;
    }
    .signin-slider-col {
        flex: 0 0 100%;
        max-width: 100%;
        padding: 40px 30px;
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
    }
    .slider-slides-wrapper {
        min-height: 240px;
    }
}

@media (max-width: 480px) {
    .signin-form-col {
        padding: 30px 20px;
    }
    .signin-slider-col {
        padding: 30px 20px;
    }
    .slider-bottom-badges {
        flex-wrap: wrap;
    }
}
