/* HRMates Enterprise HRMS Portal - Standalone CSS */
:root {
    --primary-blue: #2563eb;
    --primary-hover: #1d4ed8;
    --primary-dark: #0f172a;
    --accent-cyan: #06b6d4;
    --accent-emerald: #10b981;
    --bg-slate: #f8fafc;
    --border-color: #e2e8f0;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --card-radius: 18px;
    --input-radius: 12px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #020617;
    color: var(--text-main);
}

.hrmates-page-wrapper {
    display: flex;
    height: 100vh;
    width: 100%;
    overflow: hidden;
}

/* LEFT VISUAL SECTION */
.hrmates-visual-section {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 50%;
    height: 100%;
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #0c4a6e 100%);
    color: #ffffff;
    padding: 20px 28px;
    position: relative;
    overflow: hidden;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.visual-bg-decorations {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
}

.blob-1 {
    top: -100px;
    left: -100px;
    width: 400px;
    height: 400px;
    background: rgba(37, 99, 235, 0.25);
}

.blob-2 {
    bottom: -100px;
    right: -100px;
    width: 450px;
    height: 450px;
    background: rgba(6, 182, 212, 0.2);
}

.grid-overlay {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.15) 1px, transparent 1px);
    background-size: 24px 24px;
    opacity: 0.3;
}

.visual-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}

.brand-logo-wrap {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
}

.logo-icon-box {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.1);
    padding: 4px;
}

.logo-svg {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.live-dot {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 10px;
    height: 10px;
    background: #10b981;
    border: 2px solid #0f172a;
    border-radius: 50%;
}

.brand-title {
    font-family: 'Outfit', sans-serif;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

    .brand-title .highlight {
        color: #38bdf8;
    }

    .brand-title .badge {
        font-size: 10px;
        font-weight: 700;
        background: rgba(255, 255, 255, 0.15);
        border: 1px solid rgba(255, 255, 255, 0.2);
        padding: 2px 6px;
        border-radius: 999px;
        vertical-align: middle;
    }

.brand-sub {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #94a3b8;
    display: block;
}

.sla-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    font-size: 12px;
    color: #e2e8f0;
}

.green-dot {
    width: 8px;
    height: 8px;
    background: #34d399;
    border-radius: 50%;
}

.visual-main-content {
    position: relative;
    z-index: 2;
    margin: auto 0;
    padding: 8px 0;
}

.market-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    background: rgba(6, 182, 212, 0.15);
    border: 1px solid rgba(6, 182, 212, 0.3);
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    color: #67e8f9;
    margin-bottom: 10px;
}

.headline-title {
    font-family: 'Outfit', sans-serif;
    font-size: 28px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 8px;
}

.gradient-text {
    background: linear-gradient(to right, #38bdf8, #818cf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.headline-desc {
    font-size: 13px;
    color: #cbd5e1;
    line-height: 1.5;
    max-width: 480px;
    margin-bottom: 14px;
}

.hero-card {
    border-radius: var(--card-radius);
    overflow: hidden;
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.35);
    margin-bottom: 12px;
}

.hero-image-wrap {
    position: relative;
    height: 160px;
    overflow: hidden;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.95), transparent);
}

.floating-stat-pill {
    position: absolute;
    top: 14px;
    left: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px 12px;
    border-radius: 12px;
    backdrop-filter: blur(8px);
}

.stat-icon-wrap {
    font-size: 18px;
}

.stat-micro {
    font-size: 10px;
    color: #94a3b8;
}

.stat-bold {
    font-size: 12px;
    font-weight: 700;
}

.stat-green {
    color: #34d399;
}

.floating-payroll-tag {
    position: absolute;
    top: 14px;
    right: 14px;
    background: #2563eb;
    padding: 6px 12px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
}

.hero-card-footer {
    padding: 16px;
    background: rgba(15, 23, 42, 0.95);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.feature-title-bar {
    font-size: 12px;
    margin-bottom: 6px;
}

.cyan-label {
    color: #38bdf8;
    font-weight: 700;
}

.white-label {
    color: #ffffff;
    font-weight: 600;
}

.feature-info-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: #94a3b8;
}

.stat-badge {
    background: rgba(255, 255, 255, 0.1);
    padding: 3px 8px;
    border-radius: 6px;
    color: #38bdf8;
    font-weight: 700;
}

.metric-chips-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.chip {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    font-size: 12px;
}

.visual-footer {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    font-size: 12px;
    color: #94a3b8;
}

.trust-certs {
    display: flex;
    align-items: center;
    gap: 8px;
}

.trust-links {
    display: flex;
    gap: 10px;
}

/* RIGHT LOGIN SECTION */
.hrmates-login-section {
    width: 50%;
    height: 100%;
    background: #f8fafc;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 24px;
    overflow: hidden;
}

.login-container {
    width: 100%;
    max-width: 420px;
}

/* Top Utility Bar: mobile logo + language selector */
.top-utility-bar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-bottom: 14px;
}

    .top-utility-bar .mobile-brand-header {
        margin-bottom: 0;
        margin-right: auto;
    }

.lang-selector {
    position: relative;
}

.lang-select-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: #334155;
    cursor: pointer;
    transition: background 0.15s ease;
}

    .lang-select-btn:hover {
        background: #f8fafc;
    }

    .lang-select-btn svg.globe-icon {
        color: #64748b;
        flex-shrink: 0;
    }

    .lang-select-btn svg.chevron-icon {
        color: #94a3b8;
        flex-shrink: 0;
        transition: transform 0.15s ease;
    }

.lang-selector.open .lang-select-btn svg.chevron-icon {
    transform: rotate(180deg);
}

.lang-dropdown {
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    width: 150px;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.04);
    padding: 6px;
    z-index: 40;
    display: none;
    flex-direction: column;
}

.lang-selector.open .lang-dropdown {
    display: flex;
}

.lang-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 7px 10px;
    border: none;
    background: transparent;
    border-radius: 8px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 12.5px;
    color: #334155;
    cursor: pointer;
    text-align: left;
}

    .lang-option:hover {
        background: #eff6ff;
        color: #2563eb;
    }

    .lang-option.active {
        color: #2563eb;
        font-weight: 600;
    }

    .lang-option svg {
        color: #2563eb;
        flex-shrink: 0;
        visibility: hidden;
    }

    .lang-option.active svg {
        visibility: visible;
    }

.mobile-brand-header {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 24px;
}

    .mobile-brand-header .brand-title {
        color: #0f172a;
    }

.login-card {
    background: #ffffff;
    border-radius: var(--card-radius);
    border: 1px solid var(--border-color);
    padding: 26px 24px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.01);
}

.login-card-header {
    margin-bottom: 16px;
}

.welcome-heading {
    font-family: 'Outfit', sans-serif;
    font-size: 22px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 4px;
}

.welcome-sub {
    font-size: 13px;
    color: var(--text-muted);
}

/* Tabs */
.mode-tabs {
    display: flex;
    background: #f1f5f9;
    padding: 4px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.tab-btn {
    flex: 1;
    padding: 8px 12px;
    border: none;
    background: transparent;
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

    .tab-btn.active {
        background: #ffffff;
        color: #0f172a;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
    }

/* Alert Box */
.alert-box {
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 12px;
    margin-bottom: 16px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
}

/* Form Styles */
.form-group {
    margin-bottom: 18px;
}

.form-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 6px;
}

    .form-label .req {
        color: #ef4444;
    }

.label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.forgot-link {
    font-size: 12px;
    font-weight: 600;
    color: var(--primary-blue);
    text-decoration: none;
    cursor: pointer;
}

    .forgot-link:hover {
        text-decoration: underline;
    }

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 12px;
    font-size: 14px;
    color: #94a3b8;
}

.form-input {
    width: 100%;
    padding: 11px 14px 11px 36px;
    font-size: 14px;
    border: 1px solid #cbd5e1;
    border-radius: var(--input-radius);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #ffffff;
    color: #0f172a;
}

    .form-input:focus {
        border-color: var(--primary-blue);
        box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
    }

.pwd-toggle-btn {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    opacity: 0.6;
}

    .pwd-toggle-btn:hover {
        opacity: 1;
    }

.caps-warning {
    font-size: 11px;
    color: #d97706;
    margin-top: 4px;
    font-weight: 600;
}

.form-row-remember {
    margin-bottom: 20px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #475569;
    cursor: pointer;
}

.submit-btn {
    width: 100%;
    padding: 12px;
    background: var(--primary-blue);
    color: #ffffff;
    border: none;
    border-radius: var(--input-radius);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

    .submit-btn:hover {
        background: var(--primary-hover);
    }

    .submit-btn:active {
        transform: scale(0.99);
    }

/* QR Mode */
.qr-box {
    text-align: center;
    padding: 16px 0;
}

.qr-preview {
    display: inline-block;
    padding: 16px;
    border-radius: 16px;
    background: #ffffff;
    border: 2px dashed #bfdbfe;
    margin-bottom: 12px;
}

.qr-code-placeholder {
    width: 180px;
    height: 180px;
    background: #0f172a;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    margin: 0 auto 10px;
}

.laser-scanner {
    position: absolute;
    width: 100%;
    height: 2px;
    background: #38bdf8;
    box-shadow: 0 0 8px #38bdf8;
    animation: scan 2s ease-in-out infinite;
}

@keyframes scan {
    0%, 100% {
        top: 0;
    }

    50% {
        top: 100%;
    }
}

.qr-pairing-code {
    font-family: monospace;
    font-weight: 700;
    font-size: 14px;
    background: #f1f5f9;
    padding: 4px 12px;
    border-radius: 6px;
}

.qr-instruction {
    font-size: 12px;
    color: #64748b;
}

/* Divider & SSO */
.or-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 20px 0 16px;
}

    .or-divider::before, .or-divider::after {
        content: '';
        flex: 1;
        border-bottom: 1px solid var(--border-color);
    }

    .or-divider span {
        padding: 0 10px;
        font-size: 11px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        color: #94a3b8;
    }

.sso-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 20px;
}

.sso-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 12px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--input-radius);
    font-size: 12px;
    font-weight: 600;
    color: #334155;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}

    .sso-btn:hover {
        background: #f8fafc;
        border-color: #cbd5e1;
    }

.card-security-footer {
    text-align: center;
    font-size: 11px;
    color: #64748b;
    border-top: 1px solid #f1f5f9;
    padding-top: 14px;
}

/* Footer Links & Social Bar */
.login-footer-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 10px;
    font-size: 12px;
    color: #94a3b8;
}

.footer-social-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 6px;
}

.social-btn {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #334155;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

    .social-btn:hover {
        color: #ffffff;
        transform: translateY(-2px);
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
        border-color: transparent;
    }

    .social-btn[aria-label="LinkedIn"]:hover {
        background: #0077b5;
    }

    .social-btn[aria-label="X"]:hover,
    .social-btn[aria-label="Twitter / X"]:hover {
        background: #000000;
    }

    .social-btn[aria-label="YouTube"]:hover {
        background: #ff0000;
    }

    .social-btn[aria-label="Facebook"]:hover {
        background: #1877f2;
    }

    .social-btn[aria-label="Instagram"]:hover {
        background: linear-gradient(45deg, #f58529, #dd2a7b, #8134af);
    }

.footer-links-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 11.5px;
    cursor: pointer;
}

.login-footer-links a {
    color: #64748b;
    text-decoration: none;
    transition: color 0.2s;
}

    .login-footer-links a:hover {
        color: var(--primary-blue);
    }

.copyright-text {
    font-size: 10.5px;
    color: #94a3b8;
    margin: 0;
}

/* MODAL */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 23, 0.7);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 100;
}

.modal-card {
    width: 100%;
    max-width: 480px;
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: #f8fafc;
    border-bottom: 1px solid var(--border-color);
}

    .modal-head h3 {
        font-size: 16px;
        font-weight: 700;
        color: #0f172a;
    }

.modal-close {
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
    color: #94a3b8;
}

.modal-body {
    padding: 20px;
    font-size: 13px;
    color: #475569;
    line-height: 1.6;
    max-height: 60vh;
    overflow-y: auto;
}

.modal-foot {
    padding: 12px 20px;
    background: #f8fafc;
    border-top: 1px solid var(--border-color);
    text-align: right;
}

.modal-btn {
    padding: 8px 16px;
    background: #0f172a;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

/* COOKIE CONSENT BANNER */
.cookie-banner-container {
    position: fixed;
    bottom: 16px;
    left: 16px;
    right: 16px;
    max-width: 440px;
    z-index: 99;
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cookie-banner-content {
    background: #0f172a;
    color: #ffffff;
    padding: 16px;
    border-radius: 14px;
    border: 1px solid #334155;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 8px 10px -6px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cookie-banner-icon {
    font-size: 20px;
}

.cookie-banner-text strong {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #f8fafc;
    margin-bottom: 2px;
}

.cookie-banner-text p {
    font-size: 11.5px;
    color: #cbd5e1;
    margin: 0;
    line-height: 1.4;
}

.cookie-banner-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
}

.cookie-btn {
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 11.5px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

.cookie-btn-accept {
    background: var(--primary-blue);
    color: #ffffff;
}

    .cookie-btn-accept:hover {
        background: var(--primary-hover);
    }

.cookie-btn-necessary {
    background: #1e293b;
    color: #e2e8f0;
    border: 1px solid #475569;
}

    .cookie-btn-necessary:hover {
        background: #334155;
    }

.cookie-btn-settings {
    background: transparent;
    color: #94a3b8;
}

    .cookie-btn-settings:hover {
        color: #ffffff;
    }

/* RESPONSIVENESS */
@media (max-height: 800px) {
    .cookie-banner-container {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .hrmates-page-wrapper {
        flex-direction: column;
    }

    .hrmates-visual-section {
        display: none;
    }

    .mobile-brand-header {
        display: flex;
    }

    .hrmates-login-section {
        min-height: 100vh;
        width: 100%;
    }
}

.has-error {
    color: #f1556c;
    display: block;
    font-weight: 600;
}
