/* GCLLP – Tiles import/export themed login */
body.gcllp-login-page {
    min-height: 100vh;
    margin: 0;
    font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
    color: #1a1a1a;
    background: #0c1222;
    overflow-x: hidden;
}

.gcllp-login-shell {
    min-height: 100vh;
    display: flex;
    flex-wrap: wrap;
}

/* —— Brand / tiles showcase panel —— */
.gcllp-login-brand {
    flex: 1 1 52%;
    min-height: 320px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2.5rem 3rem;
    background: #0f1419 url('../images/login/login-tiles-texture.jpg') center/cover no-repeat;
    overflow: hidden;
}

.gcllp-login-brand::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(145deg,
        rgba(12, 18, 34, 0.92) 0%,
        rgba(20, 35, 55, 0.78) 45%,
        rgba(15, 25, 40, 0.88) 100%);
    z-index: 0;
}

.gcllp-login-brand-inner {
    position: relative;
    z-index: 2;
    max-width: 560px;
}

.gcllp-login-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #e2e8f0;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
}

.gcllp-login-logo-wrap {
    display: inline-block;
    margin-bottom: 1.25rem;
}

.gcllp-login-card-header .gcllp-app-logo--login-card {
    margin-bottom: 1rem;
}

.gcllp-app-logo--login-brand,
.gcllp-app-logo--login-card {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.gcllp-app-logo--login-brand {
    height: 64px;
    max-width: 300px;
    width: auto;
}

.gcllp-app-logo--login-card {
    height: 56px;
    max-width: 260px;
    width: auto;
    margin: 0 auto 1rem;
    padding: 0.5rem 0.75rem;
}

.gcllp-login-tagline {
    font-size: 1.05rem;
    color: rgba(226, 232, 240, 0.9);
    line-height: 1.6;
    margin: 0 0 1.75rem;
    max-width: 480px;
}

.gcllp-login-features {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.gcllp-login-feature {
    flex: 1 1 140px;
    padding: 1rem 1.1rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
}

.gcllp-login-feature i {
    font-size: 1.5rem;
    color: #38bdf8;
    margin-bottom: 0.5rem;
    display: block;
}

.gcllp-login-feature strong {
    display: block;
    color: #fff;
    font-size: 0.9rem;
    margin-bottom: 0.2rem;
}

.gcllp-login-feature span {
    font-size: 0.78rem;
    color: rgba(203, 213, 225, 0.85);
    line-height: 1.4;
}

/* Tile image mosaic */
.gcllp-tile-mosaic {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 72px);
    gap: 8px;
    max-width: 420px;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
    border: 2px solid rgba(255, 255, 255, 0.15);
}

.gcllp-tile-mosaic .tile-cell {
    background-size: cover;
    background-position: center;
    min-height: 72px;
}

.gcllp-tile-mosaic .tile-cell.hero {
    grid-column: span 2;
    grid-row: span 2;
    min-height: 152px;
    background-image: url('../images/login/login-tiles-hero.jpg');
}

.gcllp-tile-mosaic .tile-cell.t1 {
    background: linear-gradient(135deg, #e8e4df 0%, #c9c4bc 100%);
}

.gcllp-tile-mosaic .tile-cell.t2 {
    background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
}

.gcllp-tile-mosaic .tile-cell.t3 {
    background: linear-gradient(135deg, #d4a574 0%, #b8956a 100%);
}

.gcllp-tile-mosaic .tile-cell.t4 {
    background: linear-gradient(135deg, #f5f5f4 0%, #d6d3d1 100%);
}

.gcllp-tile-mosaic .tile-cell.t5 {
    background: linear-gradient(135deg, #78716c 0%, #57534e 100%);
}

/* —— Login form panel —— */
.gcllp-login-form-panel {
    flex: 1 1 48%;
    min-width: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.5rem;
    background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
    position: relative;
}

.gcllp-login-form-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #0ea5e9, #2563eb, #7c3aed);
}

.gcllp-login-card {
    width: 100%;
    max-width: 400px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 4px 6px rgba(15, 23, 42, 0.04),
        0 24px 48px rgba(15, 23, 42, 0.1);
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

.gcllp-login-card-header {
    text-align: center;
    padding: 2rem 2rem 1.25rem;
    border-bottom: 1px solid #f1f5f9;
}

.gcllp-login-card-header h2 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 0.35rem;
}

.gcllp-login-card-header p {
    font-size: 0.875rem;
    color: #64748b;
    margin: 0;
}

.gcllp-login-card-body {
    padding: 1.5rem 2rem 2rem;
}

.gcllp-login-page .form-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #475569 !important;
    margin-bottom: 0.35rem;
}

.gcllp-login-page .input-group-tile {
    position: relative;
}

.gcllp-login-page .input-group-tile > i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 1.1rem;
    z-index: 2;
    pointer-events: none;
}

.gcllp-login-page .input-group-tile .form-control {
    padding-left: 2.75rem;
    border-radius: 12px;
    border: 1px solid #cbd5e1;
    padding-top: 0.7rem;
    padding-bottom: 0.7rem;
    color: #0f172a !important;
    font-weight: 400 !important;
    background: #f8fafc;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.gcllp-login-page .input-group-tile .form-control:focus {
    border-color: #2563eb;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.gcllp-login-page .btn-gcllp-login {
    width: 100%;
    border: none;
    border-radius: 12px;
    padding: 0.8rem 1rem;
    font-weight: 700;
    font-size: 1rem;
    color: #fff;
    background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 50%, #0ea5e9 100%);
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.gcllp-login-page .btn-gcllp-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(37, 99, 235, 0.45);
    color: #fff;
}

.gcllp-login-footer-note {
    text-align: center;
    font-size: 0.75rem;
    color: #94a3b8;
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px dashed #e2e8f0;
}

.gcllp-login-page #divMsg.alert {
    border-radius: 10px;
    font-size: 0.875rem;
}

@media (max-width: 991.98px) {
    .gcllp-login-brand {
        flex: 1 1 100%;
        min-height: auto;
        padding: 2rem 1.5rem;
    }

    .gcllp-tile-mosaic {
        max-width: 100%;
    }

    .gcllp-login-form-panel {
        flex: 1 1 100%;
    }
}

@media (max-width: 575.98px) {
    .gcllp-login-features {
        flex-direction: column;
    }

    .gcllp-tile-mosaic {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
    }

    .gcllp-tile-mosaic .tile-cell.hero {
        grid-column: span 2;
        grid-row: span 1;
        min-height: 120px;
    }
}

/* Login submit overlay (login.js – no site.js on this page) */
.gcllp-login-loader {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.35);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gcllp-login-loader::after {
    content: '';
    width: 44px;
    height: 44px;
    border: 4px solid rgba(255, 255, 255, 0.35);
    border-top-color: #2563eb;
    border-radius: 50%;
    animation: gcllp-login-spin 0.7s linear infinite;
}

@keyframes gcllp-login-spin {
    to {
        transform: rotate(360deg);
    }
}
