/* ============================================================
   CRM Login Page — Modern Redesign 2025
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }

body, html {
    margin: 0;
    padding: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #f8fafc;
    height: 100%;
}

/* Hide AdminLTE default wrapper */
.login-box,
.register-box { display: none !important; }

/* ---- Layout ---- */
.crm-login-wrapper {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

/* ============================================================
   Left Brand Panel
   ============================================================ */
.crm-brand-panel {
    position: relative;
    width: 55%;
    min-height: 100vh;
    background: linear-gradient(145deg, #fff7ed 0%, #f7f2ff 55%, #fdf2f8 100%);
    background-size: cover;
    background-position: center;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 56px 56px 40px;
}

.crm-brand-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
        rgba(255, 247, 237, 0.84) 0%,
        rgba(247, 242, 255, 0.80) 55%,
        rgba(253, 242, 248, 0.86) 100%);
    pointer-events: none;
}

/* Floating shapes */
.crm-brand-shapes { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.crm-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.12;
    background: #f26b1d;
    animation: floatShape 8s ease-in-out infinite;
}
.crm-shape-1 { width: 400px; height: 400px; top: -120px; right: -80px; animation-delay: 0s; }
.crm-shape-2 { width: 260px; height: 260px; bottom: 80px; left: -60px; animation-delay: 3s; background: #5b2d91; }
.crm-shape-3 { width: 160px; height: 160px; top: 45%; right: 10%; animation-delay: 5s; }

@keyframes floatShape {
    0%, 100% { transform: translateY(0) scale(1); }
    50%       { transform: translateY(-20px) scale(1.04); }
}

/* Content */
.crm-brand-content {
    position: relative;
    z-index: 2;
}

.crm-brand-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(242,107,29,0.18);
    border: 1px solid rgba(242,107,29,0.35);
    color: #d9540b;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.5px;
    padding: 6px 14px;
    border-radius: 100px;
    margin-bottom: 32px;
    backdrop-filter: blur(8px);
    text-transform: uppercase;
}
.crm-brand-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #f26b1d;
    box-shadow: 0 0 8px #f26b1d;
    animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.4; }
}

.crm-brand-heading {
    font-size: clamp(32px, 3.5vw, 52px);
    font-weight: var(--f-w-bold, 600);
    color: #1e293b;
    line-height: 1.18;
    margin: 0 0 20px;
    letter-spacing: -0.5px;
}
.crm-brand-accent {
    background: linear-gradient(90deg, #f26b1d 0%, #7c4dbd 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.crm-brand-sub {
    color: #64748b;
    font-size: 15px;
    line-height: 1.7;
    max-width: 400px;
    margin: 0 0 40px;
}

/* Stats row */
.crm-brand-stats {
    display: flex;
    align-items: center;
    gap: 28px;
}
.crm-stat-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.crm-stat-number {
    font-size: 22px;
    font-weight: var(--f-w-bold, 600);
    color: #1e293b;
    line-height: 1;
}
.crm-stat-label {
    font-size: 11px;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.crm-stat-divider {
    width: 1px;
    height: 32px;
    background: rgba(15,23,42,0.08);
}

/* ============================================================
   Animated CRM Scene
   ============================================================ */
.crm-anim-scene {
    position: relative;
    z-index: 2;
    margin-top: 28px;
    height: 320px;
    width: 100%;
}

/* Shared float card base */
.crm-float-card {
    position: absolute;
    background: #ffffff;
    border: 1px solid rgba(15,23,42,0.08);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-radius: 16px;
    padding: 14px 16px;
    box-shadow: 0 8px 28px rgba(15,23,42,0.10);
    animation: cardFloat 6s ease-in-out infinite;
}

/* ---- Notification card ---- */
.crm-notif-card {
    top: 0; left: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 230px;
    animation-delay: 0s;
    animation-name: cardFloat, cardEnter;
    animation-duration: 6s, 0.6s;
    animation-timing-function: ease-in-out, cubic-bezier(0.16,1,0.3,1);
    animation-fill-mode: both, both;
    animation-iteration-count: infinite, 1;
}
.crm-notif-icon {
    width: 36px; height: 36px;
    background: rgba(242,107,29,0.18);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.crm-notif-icon svg { width: 18px; height: 18px; }
.crm-notif-text { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.crm-notif-title { font-size: 12px; font-weight: var(--f-w-semi, 500); color: #1e293b; }
.crm-notif-sub   { font-size: 11px; color: #64748b; }
.crm-notif-badge {
    font-size: 10px; font-weight: var(--f-w-semi, 500);
    background: linear-gradient(135deg, #f26b1d, #fb923c);
    color: #fff;
    padding: 3px 8px;
    border-radius: 100px;
    animation: badgePulse 2.5s ease-in-out infinite;
}
@keyframes badgePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(242,107,29,0.5); }
    50%       { box-shadow: 0 0 0 6px rgba(242,107,29,0); }
}

/* ---- Main dashboard card ---- */
.crm-dash-card {
    top: 48px; right: 0;
    width: 260px;
    animation-delay: 0.8s;
    animation-name: cardFloat, cardEnter;
    animation-duration: 7s, 0.7s;
    animation-timing-function: ease-in-out, cubic-bezier(0.16,1,0.3,1);
    animation-fill-mode: both, both;
    animation-iteration-count: infinite, 1;
    animation-delay: 0.4s, 0.4s;
}
.crm-dash-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 14px;
}
.crm-dash-title {
    display: flex; align-items: center; gap: 6px;
    font-size: 12px; font-weight: var(--f-w-semi, 500); color: #1e293b;
}
.crm-dash-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 6px #22c55e;
    animation: pulse-dot 2s ease-in-out infinite;
}
.crm-dash-pill {
    font-size: 10px; color: #64748b;
    background: rgba(15,23,42,0.05);
    border: 1px solid rgba(15,23,42,0.08);
    padding: 2px 8px; border-radius: 100px;
}

/* Bar chart */
.crm-bar-chart {
    display: flex; align-items: flex-end; gap: 6px;
    height: 80px;
    margin-bottom: 14px;
}
.crm-bar-group {
    flex: 1;
    display: flex; flex-direction: column;
    align-items: center; gap: 4px;
    height: 100%;
    justify-content: flex-end;
}
.crm-bar {
    width: 100%;
    height: var(--h);
    background: var(--color);
    border-radius: 4px 4px 2px 2px;
    transform-origin: bottom;
    animation: barGrow 0.8s cubic-bezier(0.34,1.56,0.64,1) var(--delay) both;
    box-shadow: 0 0 12px color-mix(in srgb, var(--color) 50%, transparent);
}
@keyframes barGrow {
    from { transform: scaleY(0); }
    to   { transform: scaleY(1); }
}
.crm-bar-label { font-size: 9px; color: #64748b; }

/* Metrics */
.crm-metrics-row {
    display: flex; gap: 12px;
    border-top: 1px solid rgba(15,23,42,0.05);
    padding-top: 12px;
}
.crm-metric { display: flex; flex-direction: column; gap: 1px; flex: 1; }
.crm-metric-val {
    font-size: 16px; font-weight: var(--f-w-bold, 600); color: #1e293b;
    font-variant-numeric: tabular-nums;
}
.crm-metric-lbl { font-size: 10px; color: #64748b; }

/* ---- Ring chart card ---- */
.crm-ring-card {
    bottom: 20px; left: 12px;
    display: flex; flex-direction: column; align-items: center;
    gap: 6px;
    animation-name: cardFloat, cardEnter;
    animation-duration: 5.5s, 0.6s;
    animation-timing-function: ease-in-out, cubic-bezier(0.16,1,0.3,1);
    animation-fill-mode: both, both;
    animation-iteration-count: infinite, 1;
    animation-delay: 1.2s, 0.7s;
}
.crm-ring-label { font-size: 11px; font-weight: 500; color: #64748b; }
.crm-ring-wrap { position: relative; width: 72px; height: 72px; }
.crm-ring-svg {
    width: 72px; height: 72px;
    transform: rotate(-90deg);
}
.crm-ring-fill {
    animation: ringFill 1.4s 0.8s cubic-bezier(0.4,0,0.2,1) forwards;
}
@keyframes ringFill {
    to { stroke-dashoffset: 42.5; }
}
.crm-ring-pct {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 15px; font-weight: var(--f-w-bold, 600); color: #1e293b;
}

/* ---- Avatars card ---- */
.crm-avatar-card {
    bottom: 20px; right: 12px;
    display: flex; align-items: center; gap: 10px;
    animation-name: cardFloat, cardEnter;
    animation-duration: 6.5s, 0.6s;
    animation-timing-function: ease-in-out, cubic-bezier(0.16,1,0.3,1);
    animation-fill-mode: both, both;
    animation-iteration-count: infinite, 1;
    animation-delay: 2s, 1s;
}
.crm-avatar-stack { display: flex; }
.crm-avatar {
    width: 30px; height: 30px; border-radius: 50%;
    font-size: 11px; font-weight: var(--f-w-bold, 600);
    display: flex; align-items: center; justify-content: center;
    border: 2px solid #fff;
    margin-left: -8px;
}
.crm-avatar:first-child { margin-left: 0; }
.crm-av-1 { background: linear-gradient(135deg,#f26b1d,#fb923c); color:#fff; }
.crm-av-2 { background: linear-gradient(135deg,#2563eb,#60a5fa); color:#fff; }
.crm-av-3 { background: linear-gradient(135deg,#db2777,#f472b6); color:#fff; }
.crm-av-more { background: rgba(15,23,42,0.08); color:#64748b; font-size:9px; }
.crm-avatar-info { display: flex; flex-direction: column; gap: 2px; }
.crm-avatar-title { font-size: 12px; font-weight: var(--f-w-semi, 500); color: #1e293b; }
.crm-avatar-online { display: flex; align-items: center; gap: 4px; font-size: 11px; color: #64748b; }
.crm-online-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 6px #22c55e;
    animation: pulse-dot 2s ease-in-out infinite;
}

/* ---- Trend card ---- */
.crm-trend-card {
    top: 0; right: 0;
    display: flex; align-items: center; gap: 8px;
    padding: 10px 14px;
    animation-name: cardFloat, cardEnter;
    animation-duration: 5s, 0.5s;
    animation-timing-function: ease-in-out, cubic-bezier(0.16,1,0.3,1);
    animation-fill-mode: both, both;
    animation-iteration-count: infinite, 1;
    animation-delay: 0s, 0.2s;
}
.crm-trend-icon {
    font-size: 20px; line-height: 1;
    color: #22c55e;
    text-shadow: 0 0 10px rgba(34,197,94,0.6);
}
.crm-trend-val { display: block; font-size: 15px; font-weight: var(--f-w-bold, 600); color: #22c55e; }
.crm-trend-sub { display: block; font-size: 10px; color: #64748b; }

/* ---- Grid dots decoration ---- */
.crm-grid-dots {
    position: absolute; inset: 0;
    pointer-events: none;
    background-image: radial-gradient(circle, rgba(242,107,29,0.14) 1px, transparent 1px);
    background-size: 24px 24px;
    border-radius: 12px;
    z-index: -1;
    animation: gridFade 4s ease-in-out infinite alternate;
}
@keyframes gridFade {
    from { opacity: 0.4; }
    to   { opacity: 0.8; }
}

/* ---- Shared keyframes ---- */
@keyframes cardFloat {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-8px); }
}
@keyframes cardEnter {
    from { opacity: 0; transform: translateY(16px) scale(0.96); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ============================================================
   Right Login Panel
   ============================================================ */
.crm-login-panel {
    width: 45%;
    min-height: 100vh;
    background: #fff7ed;
    background-image:
        radial-gradient(circle at 20% 20%, rgba(242,107,29,0.10) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(59,130,246,0.08) 0%, transparent 50%),
        radial-gradient(circle, rgba(242,107,29,0.06) 1px, transparent 1px);
    background-size: auto, auto, 28px 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 32px;
    position: relative;
}

.crm-login-inner {
    width: 100%;
    max-width: 420px;
    animation: slideUp 0.55s cubic-bezier(0.16,1,0.3,1) both;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Floating white card */
.crm-login-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 36px 32px 32px;
    box-shadow:
        0 4px 6px rgba(242,107,29,0.04),
        0 12px 40px rgba(242,107,29,0.10),
        0 1px 2px rgba(0,0,0,0.04);
    border: 1px solid rgba(242,107,29,0.08);
    position: relative;
    overflow: hidden;
}
.crm-login-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, #f26b1d 0%, #fb923c 50%, #7c4dbd 100%);
    border-radius: 24px 24px 0 0;
}

/* Logo */
.crm-login-logo {
    margin-bottom: 24px;
    text-align: center;
}
.crm-login-logo img {
    max-height: 84px;
    max-width: 180px;
    object-fit: contain;
}

/* Heading */
.crm-login-heading {
    text-align: center;
    margin-bottom: 24px;
}
.crm-login-heading h2 {
    font-size: 24px;
    font-weight: var(--f-w-bold, 600);
    color: #0f172a;
    margin: 0 0 6px;
    letter-spacing: -0.3px;
}
.crm-login-heading p {
    font-size: 13px;
    color: #64748b;
    margin: 0;
}

/* Google Button */
.crm-google-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 12px 20px;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    color: #1e293b;
    font-size: 14px;
    font-weight: var(--f-w-semi, 500);
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    cursor: pointer;
    margin-bottom: 20px;
}
.crm-google-btn:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transform: translateY(-1px);
    color: #0f172a;
    text-decoration: none;
}
.crm-google-icon { width: 20px; height: 20px; flex-shrink: 0; }

/* Divider */
.crm-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}
.crm-divider-line {
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}
.crm-divider-text {
    font-size: 12px;
    color: #94a3b8;
    white-space: nowrap;
    font-weight: 500;
}

/* ---- Override AdminLTE form styles ---- */
.crm-form-wrap .login-box { display: block !important; width: 100%; }
.crm-form-wrap .login-box .login-logo,
.crm-form-wrap .login-box .card-header { display: none !important; }
.crm-form-wrap .login-box .card {
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    margin: 0 !important;
}
.crm-form-wrap .login-box .card .card-body {
    padding: 0 !important;
    background: transparent !important;
}
.crm-form-wrap .login-box .card .card-footer {
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    margin-top: 8px;
}
.crm-form-wrap .login-card-body,
.crm-form-wrap .register-card-body {
    background: transparent !important;
}

/* Modern input group */
.crm-form-wrap .input-group {
    border: 1.5px solid #e2e8f0;
    border-radius: 12px !important;
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #fff;
}
.crm-form-wrap .input-group:focus-within {
    border-color: #f26b1d;
    box-shadow: 0 0 0 3px rgba(242,107,29,0.12);
}
.crm-form-wrap .input-group .form-control {
    border: none !important;
    box-shadow: none !important;
    padding: 13px 16px;
    font-size: 14px;
    color: #0f172a;
    background: transparent;
    height: auto;
}
.crm-form-wrap .input-group .form-control::placeholder { color: #94a3b8; }
.crm-form-wrap .input-group .form-control:focus { outline: none; box-shadow: none; }
.crm-form-wrap .input-group-append .input-group-text {
    background: transparent !important;
    border: none !important;
    color: #94a3b8;
    padding-right: 14px;
    font-size: 14px;
}
.crm-form-wrap .input-group.mb-3 { margin-bottom: 14px !important; }

/* Remember me row */
.crm-form-wrap .icheck-primary { display: flex; align-items: center; gap: 8px; }
.crm-form-wrap .icheck-primary input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #f26b1d;
    cursor: pointer;
}
.crm-form-wrap .icheck-primary label {
    font-size: 13px;
    color: #64748b;
    font-weight: 400;
    margin: 0;
    cursor: pointer;
}

/* Sign in button */
.crm-form-wrap .btn-block,
.crm-form-wrap .btn-base,
.crm-form-wrap .btn-organge {
    background: linear-gradient(135deg, #f26b1d 0%, #5b2d91 100%) !important;
    border: none !important;
    border-radius: 12px !important;
    padding: 13px 20px !important;
    font-size: 14px !important;
    font-weight: var(--f-w-semi, 500) !important;
    color: #fff !important;
    width: 100% !important;
    cursor: pointer;
    transition: all 0.2s ease !important;
    box-shadow: 0 4px 14px rgba(242,107,29,0.35) !important;
    letter-spacing: 0.2px;
}
.crm-form-wrap .btn-block:hover,
.crm-form-wrap .btn-base:hover,
.crm-form-wrap .btn-organge:hover {
    background: linear-gradient(135deg, #5b2d91 0%, #d9540b 100%) !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(242,107,29,0.45) !important;
}
.crm-form-wrap .btn-block .fa-sign-in-alt { margin-right: 6px; }

/* Error states */
.crm-form-wrap .is-invalid { border-color: #ef4444 !important; }
.crm-form-wrap .invalid-feedback { font-size: 12px; color: #ef4444; margin-top: 4px; }

/* Footer text */
.crm-login-footer {
    position: absolute;
    bottom: 20px;
    font-size: 12px;
    color: #cbd5e1;
    text-align: center;
    margin: 0;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
    .crm-brand-panel { width: 48%; padding: 40px 32px 32px; }
    .crm-login-panel { width: 52%; padding: 40px 28px; }
}

@media (max-width: 768px) {
    .crm-login-wrapper { flex-direction: column; }

    .crm-brand-panel {
        width: 100%;
        min-height: auto;
        padding: 40px 24px 100px;
    }
    .crm-anim-scene { display: none; }
    .crm-brand-heading { font-size: 28px; }
    .crm-brand-sub { display: none; }

    .crm-login-panel {
        width: 100%;
        min-height: auto;
        padding: 32px 16px 48px;
        border-radius: 28px 28px 0 0;
        margin-top: -28px;
        position: relative;
        z-index: 10;
        box-shadow: 0 -12px 48px rgba(0,0,0,0.18);
    }
    .crm-login-card {
        padding: 28px 20px 24px;
        border-radius: 20px;
    }
    .crm-login-footer { position: static; margin-top: 20px; color: #94a3b8; }
}

@media (max-width: 420px) {
    .crm-brand-panel { padding: 32px 20px 80px; }
    .crm-login-panel { padding: 32px 20px 48px; }
    .crm-brand-stats { gap: 16px; }
    .crm-stat-number { font-size: 18px; }
}

/* Login <-> register link under the form */
.crm-auth-switch {
    margin: 20px 0 0;
    text-align: center;
    font-size: 14px;
    color: #64748b;
}
.crm-auth-switch a {
    color: #5b2d91;
    font-weight: 600;
    text-decoration: none;
}
.crm-auth-switch a:hover { text-decoration: underline; }


/* Register page: same AdminLTE overrides the login box gets above */
.crm-form-wrap .register-box { display: block !important; width: 100%; }
.crm-form-wrap .register-box .register-logo,
.crm-form-wrap .register-box .card-header,
.crm-form-wrap .register-box .card .card-footer { display: none !important; }
.crm-form-wrap .register-box .card {
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    margin: 0 !important;
}
.crm-form-wrap .register-box .card .card-body {
    padding: 0 !important;
    background: transparent !important;
}

/* Flash message above the Google button (registrations closed, etc.) */
.crm-auth-alert {
    margin: 0 0 16px;
    padding: 10px 14px;
    border-radius: 10px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    font-size: 14px;
    text-align: center;
}

/* Register: module picker (compact chips) */
.crm-plan-title {
    margin: 0 0 8px;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
}
.crm-plan-title span { font-weight: 400; color: #94a3b8; }
.crm-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}
.crm-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 6px 12px;
    border: 1.5px solid #e2e8f0;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
    color: #334155;
    cursor: pointer;
    user-select: none;
    transition: border-color .15s, background .15s, color .15s;
}
.crm-chip input { position: absolute; opacity: 0; pointer-events: none; }
.crm-chip-icon { color: #f26b1d; font-size: 12px; }
.crm-chip .crm-chip-tick { display: none; font-size: 11px; }
.crm-chip:hover { border-color: #fed7aa; }
.crm-chip:has(input:checked) { border-color: #5b2d91; background: #5b2d91; color: #fff; }
.crm-chip:has(input:checked) .crm-chip-icon { display: none; }
.crm-chip:has(input:checked) .crm-chip-tick { display: inline-block; }
.crm-chip:has(input:focus-visible) { box-shadow: 0 0 0 3px rgba(242,107,29,0.25); }
.crm-plan-fixed {
    margin: 0 0 16px;
    padding: 10px 14px;
    border-radius: 10px;
    background: #fff7ed;
    color: #3730a3;
    font-size: 14px;
    text-align: center;
}

/* Register card is taller than the screen, so the footer sits under it
   instead of pinned to the bottom (where it covered the Register button). */
.crm-login-footer--static {
    position: static;
    margin-top: 24px;
}

/* "Update subscription" inside the locked-out message */
.crm-auth-alert-btn {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 18px;
    border-radius: 8px;
    background: #5b2d91;
    color: #fff !important;
    font-weight: 600;
    text-decoration: none !important;
}
.crm-auth-alert-btn:hover { background: #d9540b; }

/* ============================================================
   Register page: compact, fits a laptop screen without scrolling
   ============================================================ */
/* AdminLTE makes body.register-page a grey, 100vh centred flex column, which
   left a band under our own layout (grey on phones, where the form is short). */
body.register-page { display: block; height: auto; min-height: 100vh; background: #fff7ed; }
.crm-register .crm-login-panel { padding-top: 24px; padding-bottom: 24px; justify-content: center; }
.crm-register .crm-login-inner { max-width: 460px; }
.crm-register .crm-login-card { padding: 22px 24px 20px; border-radius: 18px; }
.crm-register .crm-login-logo { margin-bottom: 10px; }
.crm-register .crm-login-logo img { max-height: 60px; }
.crm-register .crm-login-heading { margin-bottom: 14px; }
.crm-register .crm-login-heading h2 { font-size: 20px; margin-bottom: 2px; }
.crm-register .crm-google-btn { padding: 9px 16px; border-radius: 10px; margin-bottom: 12px; }
.crm-register .crm-divider { margin-bottom: 12px; }

/* Fields two to a row: name | company, email full width, password | retype */
.crm-register .crm-form-wrap form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.crm-register .crm-form-wrap .input-group.mb-3 { margin-bottom: 0 !important; }
.crm-register .crm-form-wrap .input-group:has(input[name="email"]),
.crm-register .crm-form-wrap form > button { grid-column: 1 / -1; }
.crm-register .crm-form-wrap .input-group { border-radius: 10px !important; }
.crm-register .crm-form-wrap .input-group .form-control { padding: 9px 12px; font-size: 13.5px; }
.crm-register .crm-form-wrap .input-group-append .input-group-text { padding-right: 10px; font-size: 13px; }
.crm-register .crm-form-wrap form > button { padding: 10px 16px !important; border-radius: 10px !important; margin-top: 2px; }
.crm-register .crm-auth-switch { margin-top: 12px; font-size: 13px; }
.crm-register .crm-login-footer--static { margin-top: 14px; }

/* Brand panel: smaller headline so the left side is not taller than the form */
.crm-register .crm-brand-heading { font-size: clamp(30px, 3.6vw, 44px); }

/* Phones: one field per row */
@media (max-width: 576px) {
    .crm-register .crm-form-wrap form { grid-template-columns: 1fr; }
    .crm-register .crm-login-card { padding: 20px 16px 18px; }
}
.crm-forgot-password {
    text-align: right;
    margin-top: 12px;
}

.crm-forgot-password a {
    color: #f26b1d;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.crm-forgot-password a:hover {
    color: #5b2d91;
    text-decoration: underline;
}
/* Forgot password form */
.crm-fp-form { display: flex; flex-direction: column; }
.crm-fp-label { font-size: 13px; font-weight: 500; color: #374151; margin-bottom: 6px; }
.crm-fp-input {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
}
.crm-fp-input:focus { border-color: #f26b1d; box-shadow: 0 0 0 3px rgba(242,107,29,.15); }
.crm-fp-input-error { border-color: #dc2626; }
.crm-fp-error { color: #dc2626; font-size: 12px; margin-top: 6px; }
.crm-fp-btn {
    margin-top: 18px;
    padding: 12px;
    border: 0;
    border-radius: 8px;
    background: #f26b1d;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s;
}
.crm-fp-btn:hover { background: #d95a10; }
.crm-fp-alert { padding: 10px 14px; border-radius: 8px; font-size: 13px; margin-bottom: 14px; }
.crm-fp-alert-success { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
/* Reset password additions */
.crm-fp-group { display: flex; flex-direction: column; margin-bottom: 14px; }
.crm-fp-input[readonly] { background: #f3f4f6; color: #6b7280; cursor: not-allowed; }