/* ===============================
   🔐 MOBILEID LOGIN PAGE STYLES
   Shared Login Page Styles for All Portals
   Professional & Consistent Design
   Version: 1.0
   =============================== */

:root {
    --primary: #06a9e0;
    --primary-hover: #0072CE;
    --dark: #212529;
    --white: #fff;
    --muted: #6B7280;
    --gradient-primary: linear-gradient(135deg, #0CCBFF 0%, #0A62E8 100%);
}

/* ===============================
   GLOBAL RESET FOR LOGIN PAGES
   =============================== */
html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: "Source Sans Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ===============================
   LOGIN BACKGROUND CONTAINER
   Full-height background with cover
   =============================== */
.login-bg {
    min-height: 100vh;
    height: 100%;
    margin: 0;
    padding: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    position: relative;
}

/* Portal-specific background images */
.login-bg.auth-portal {
    background-image: url(/auth-login-bg.png);
}

.login-bg.support-portal::before {
	background: linear-gradient(135deg, #0CCBFF 0%, #0072CE 100%);
	z-index: -1;
}

.login-bg.crm-portal::before {
    background: linear-gradient(0deg, #00C853 0%, #0072CE 100%);
	z-index: -1;
}

.login-bg.admin-portal {
    background-image: url(/admin-login-bg.png);
}

.login-bg.crm-portal {
    background-image: url(/marketing-login-bg.png);
}

.login-bg.support-portal {
    background-image: url(/support-login-bg.png);
}



/* Optional overlay for better readability */
.login-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* background: rgba(0, 0, 0, 0.1); */
    z-index: 1;
}

/* ===============================
   LOGIN LAYOUT - FLEXBOX CENTERING
   =============================== */
.login-wrapper {
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    z-index: 2;
}

.login-container {
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
}

/* ===============================
   LOGIN CARD - GLASSMORPHISM STYLE
   =============================== */
.login-card {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ===============================
   LOGIN LOGO
   =============================== */
.login-logo {
    text-align: center;
    margin-bottom: 1.2rem;
}

.login-logo img {
    max-height: 60px;
    width: auto;
}

/* ===============================
   LOGIN TITLE
   =============================== */
.login-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
    text-align: center;
    margin-bottom: 1.5rem;
}

/* ===============================
   LOGIN FORM
   =============================== */
.login-form {
    width: 100%;
}

.login-form .form-group {
    margin-bottom: 1.25rem;
}

/* ===============================
   LOGIN INPUT FIELDS
   =============================== */
.login-input {
    height: 48px;
    border-radius: 8px;
    border: 1px solid #dfe4ea;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--white);
    width: 100%;
}

.login-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(6, 169, 224, 0.15);
    outline: none;
}

.login-input::placeholder {
    color: var(--muted);
}

/* Input Group Styling */
.input-group .login-input {
    border-right: none;
}

.input-group-text {
    background-color: transparent;
    border-left: none;
    border-color: #dfe4ea;
    color: var(--muted);
}

.login-input:focus + .input-group-append .input-group-text {
    border-color: var(--primary);
}

/* ===============================
   LOGIN BUTTON
   =============================== */
.login-btn {
    height: 48px;
    background: var(--gradient-primary) !important;
    border: none !important;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    margin-top: 1rem;
    width: 100%;
    color: var(--white);
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(6, 169, 224, 0.4);
    color: var(--white);
}

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

/* ===============================
   ALERT MESSAGES
   =============================== */
.login-card .alert {
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    padding: 0.75rem 1rem;
    border: none;
}

.login-card .alert-success {
    background: linear-gradient(90deg, rgba(0, 200, 83, 0.1) 0%, rgba(0, 200, 83, 0.05) 100%);
    color: #00C853;
    border-left: 4px solid #00C853;
}

.login-card .alert-danger {
    background: linear-gradient(90deg, rgba(220, 53, 69, 0.1) 0%, rgba(220, 53, 69, 0.05) 100%);
    color: #dc3545;
    border-left: 4px solid #dc3545;
}

.login-card .alert-info {
    background: linear-gradient(90deg, rgba(6, 169, 224, 0.1) 0%, rgba(6, 169, 224, 0.05) 100%);
    color: var(--primary);
    border-left: 4px solid var(--primary);
}

/* ===============================
   ERROR MESSAGES
   =============================== */
.login-form .text-danger {
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
}

/* ===============================
   HELPER TEXT
   =============================== */
.login-form .text-muted {
    font-size: 0.9rem;
    color: var(--muted);
}

/* ===============================
   RESPONSIVE DESIGN
   =============================== */
@media (max-width: 576px) {
    .login-card {
        padding: 2rem 1.5rem;
    }
    
    .login-title {
        font-size: 1.25rem;
    }
    
    .login-logo img {
        max-height: 50px;
    }

    .login-wrapper {
        padding: 15px;
    }
}

@media (max-width: 400px) {
    .login-card {
        padding: 1.5rem 1.25rem;
    }
}
