﻿/* ==========================================================================
   CRM Client Login Page Stylesheet (Single Desktop Frame / Compact Form)
   ========================================================================== */

/* Main page section - Fits exactly into 1 Viewport Screen without scrolling */
.crm-login-page-wrapper {
    width: 100%;
    height: 100vh; /* Fixed height for single screen frame */
    max-height: 100vh;
    background: url('../image/crm-client-login/crm-clinrnt-login.jpeg') no-repeat center center / cover;
    background-color: #0537af;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    box-sizing: border-box;
    overflow: hidden; /* Prevents unwanted scrolling */
}

/* The hero overlay area (left text + right card side by side) */
.crm-full-overlay {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: 20px 40px;
    box-sizing: border-box;
    flex: 1;
}

/* Left Hero Text */
.crm-hero-content {
    color: #ffffff;
    flex: 1;
    max-width: 440px;
    min-width: 240px;
    padding: 0;
    margin-top: 0; 
}

.crm-hero-content .tagline {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #ffffff;
    margin-bottom: 6px;
    display: block;
   
}

.crm-hero-content h1 {
    font-size: 2.6rem;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 12px;
    color: #ffffff;
    letter-spacing: -0.5px;
    
}

.crm-hero-content p {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
    margin: 0;
    padding-bottom: 160px;
}

/* Right Login Card - Compact & Smaller */
.crm-card {
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
    width: 350px; /* Reduced width */
    min-width: 330px;
    max-width: 360px;
    overflow: hidden;
    flex-shrink: 0;
}

/* Tabs */
.crm-tabs {
    display: flex;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    border-radius: 14px 14px 0 0;
    overflow: hidden;
}

.crm-tab-btn {
    flex: 1;
    padding: 10px 14px; /* Reduced padding */
    border: none;
    background: transparent;
    font-size: 0.82rem;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.25s ease;
    border-bottom: 3px solid transparent;
}

.crm-tab-btn i {
    font-size: 0.85rem;
}

.crm-tab-btn.active {
    background: #ffffff;
    color: #2563eb;
    border-bottom: 3px solid #2563eb;
}

/* Card Body - Compact */
.crm-card-body {
    padding: 12px 20px 16px;
}

/* Logo Wrapper */
.crm-logo-wrapper {
    text-align: center;
    margin-bottom: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.crm-logo-wrapper img {
    max-height: 42px; /* Smaller logo */
    width: auto;
    margin: 0 auto 4px auto;
    display: block;
}

.crm-logo-wrapper p {
    font-size: 0.72rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
}

/* Form Styles - Compact */
.crm-form-group {
    margin-bottom: 8px; /* Compact spacing */
}

.crm-form-group label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 3px;
}

.crm-input-icon-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.crm-input-icon-wrap i.left-icon {
    position: absolute;
    left: 10px;
    color: #94a3b8;
    font-size: 0.8rem;
    pointer-events: none;
}

.crm-input-icon-wrap i.right-icon {
    position: absolute;
    right: 10px;
    color: #94a3b8;
    font-size: 0.8rem;
    cursor: pointer;
}

.crm-input-icon-wrap input {
    width: 100%;
    padding: 7px 32px 7px 30px; /* Reduced height/padding */
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 0.78rem;
    color: #1e293b;
    background: #f8fafc;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s, background-color 0.2s;
}

.crm-input-icon-wrap input:focus {
    border-color: #2563eb;
    background: #ffffff;
}

/* Custom Dropdown */
.custom-dropdown-container {
    position: relative;
    width: 100%;
}

.custom-select-trigger {
    cursor: pointer;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 7px 30px;
    user-select: none;
    position: relative;
    display: flex;
    align-items: center;
    box-sizing: border-box;
    width: 100%;
    transition: all 0.2s ease;
}

.custom-select-trigger:hover {
    border-color: #2563eb;
    background: #ffffff;
}

.custom-select-trigger .selected-value {
    font-size: 0.78rem;
    color: #64748b;
    flex: 1;
}

.custom-options-menu {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    z-index: 9999;
    display: none;
    max-height: 160px;
    overflow-y: auto;
}

.custom-dropdown-container.open .custom-options-menu {
    display: block;
}

.custom-option {
    padding: 7px 12px;
    font-size: 0.78rem;
    color: #334155;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.custom-option:hover {
    background: #0537af;
    color: #ffffff;
}

/* Remember Me Row */
.crm-form-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 4px;
    margin-bottom: 10px;
    font-size: 0.75rem;
}

.crm-remember {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #475569;
    cursor: pointer;
}

.crm-remember input[type=checkbox] {
    accent-color: #2563eb;
    width: 13px;
    height: 13px;
    cursor: pointer;
}

.crm-forgot {
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.75rem;
}

.crm-forgot:hover {
    text-decoration: underline;
}

/* Submit Button */
.crm-submit-btn {
    width: 100%;
    padding: 9px;
    background: #0537af;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    box-shadow: 0 3px 10px rgba(5, 55, 175, 0.3);
    transition: background 0.2s;
    letter-spacing: 0.5px;
}

.crm-submit-btn:hover {
    background: #0036cc;
}

/* Divider */
.crm-divider {
    text-align: center;
    margin: 8px 0 6px;
    position: relative;
}

.crm-divider::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 1px;
    background: #e2e8f0;
    z-index: 1;
}

.crm-divider span {
    position: relative;
    z-index: 2;
    background: #ffffff;
    padding: 0 8px;
    color: #94a3b8;
    font-size: 0.7rem;
}

/* Admin Access */
.crm-admin-access {
    text-align: center;
    font-size: 0.72rem;
    color: #64748b;
}

.crm-admin-access a {
    color: #2563eb;
    font-weight: 600;
    text-decoration: none;
}

.crm-admin-access a:hover {
    text-decoration: underline;
}

/* Bottom Features Bar */
.crm-features-section {
    width: 100%;
    background: #ffffff;
    padding: 20px 30px;
    box-sizing: border-box;
    border-radius: 16px 16px 0 0;
    flex-shrink: 0;
}

.crm-features-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-around;
    gap: 0;
}

.crm-feature-card {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    position: relative;
    padding: 0 15px;
}

/* Vertical divider */
.crm-feature-card:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 10%;
    height: 80%;
    width: 1px;
    background: #e2e8f0;
}

.crm-feature-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #eef2ff;
    color: #0537af;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.crm-feature-info h4 {
    font-size: 0.8rem;
    font-weight: 700;
    color: #1e3a8a;
    margin: 0 0 1px 0;
}

.crm-feature-info p {
    font-size: 0.7rem;
    color: #64748b;
    margin: 0;
    line-height: 1.3;
}

/* Bottom Footer Bar */
.crm-footer-bottom {
    background: #0537af;
    color: #ffffff;
    padding: 8px 20px;
    font-size: 0.75rem;
}

.crm-footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.crm-footer-links {
    display: flex;
    align-items: center;
    gap: 16px;
}

.crm-footer-links a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
}

.crm-footer-links a:hover {
    text-decoration: underline;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1100px) {
    .crm-full-overlay {
        padding: 20px 20px;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .crm-login-page-wrapper {
        height: auto;
        max-height: none;
        overflow: auto;
        background-image: none !important;
        background-color: #0537af !important;
        padding: 20px 14px 0;
    }
    .crm-full-overlay {
        flex-direction: column;
        align-items: center;
        padding: 10px 0 16px;
        gap: 16px;
    }
    .crm-hero-content {
        display: block !important;
        text-align: center;
        max-width: 100%;
        min-width: unset;
        margin-top: 0 !important;
        padding: 0 10px;
    }
    .crm-hero-content h1 {
        font-size: 1.5rem;
        margin-bottom: 6px;
    }
    .crm-hero-content p {
        font-size: 0.85rem;
        padding-bottom: 0;
        margin: 0 0 8px 0;
    }
    .crm-card {
        width: 100%;
        min-width: unset;
        max-width: 100%;
        margin-bottom: 16px;
    }
    .crm-features-section {
        padding: 16px 20px;
        border-radius: 16px 16px 0 0;
    }
    .crm-features-grid {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }
    .crm-feature-card {
        padding: 0;
        width: 100%;
    }
    .crm-feature-card:not(:last-child)::after {
        display: none;
    }
}

