/* MERAGU GARMENTS ERP — Login Page (scoped) */

:root {
    --login-teal: #00a884;
    --login-teal-dark: #008f70;
    --login-teal-deep: #006b55;
    --login-teal-light: #e6f7f2;
    --login-accent: #e85d4c;
    --login-body-bg: #eef1f4;
    --login-card-bg: #ffffff;
    --login-text: #1f2937;
    --login-text-muted: #6b7280;
    --login-border: #e5e9ef;
    --login-input-border: #d1d5db;
    --login-radius: 16px;
    --login-shadow: 0 18px 48px rgba(15, 23, 42, 0.12);
}

body.erp-login-page {
    margin: 0;
    min-height: 100vh;
    background: var(--login-body-bg);
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: var(--login-text);
    -webkit-font-smoothing: antialiased;
}

.erp-login-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.erp-login-card {
    display: flex;
    width: 100%;
    max-width: 960px;
    min-height: 560px;
    background: var(--login-card-bg);
    border-radius: var(--login-radius);
    box-shadow: var(--login-shadow);
    overflow: hidden;
}

/* ── Branded left panel ── */

.erp-login-brand {
    flex: 0 0 44%;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2.5rem 2rem;
    color: #fff;
    background:
        linear-gradient(145deg, rgba(0, 107, 85, 0.92) 0%, rgba(0, 143, 112, 0.88) 45%, rgba(0, 168, 132, 0.82) 100%),
        repeating-linear-gradient(
            -45deg,
            transparent,
            transparent 8px,
            rgba(255, 255, 255, 0.04) 8px,
            rgba(255, 255, 255, 0.04) 9px
        ),
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 8px,
            rgba(255, 255, 255, 0.03) 8px,
            rgba(255, 255, 255, 0.03) 9px
        );
    overflow: hidden;
}

.erp-login-brand::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 25%, rgba(255, 255, 255, 0.12) 0%, transparent 45%),
        radial-gradient(circle at 80% 70%, rgba(0, 0, 0, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

.erp-login-brand-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.35;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.08'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.erp-login-brand-content {
    position: relative;
    z-index: 1;
}

.erp-login-brand-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin-bottom: 1.25rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(4px);
    font-size: 1.65rem;
}

.erp-login-brand-title {
    margin: 0 0 0.5rem;
    font-size: 1.65rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    line-height: 1.25;
}

.erp-login-brand-tagline {
    margin: 0 0 1.75rem;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.9;
}

.erp-login-brand-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.erp-login-brand-features li {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.erp-login-brand-features li i {
    font-size: 0.95rem;
    opacity: 0.95;
}

/* ── Form panel ── */

.erp-login-form-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2.75rem 2.5rem;
}

.erp-login-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    margin-bottom: 2rem;
    text-decoration: none;
    color: var(--login-text);
}

.erp-login-logo img {
    max-height: 42px;
    width: auto;
    object-fit: contain;
}

.erp-login-logo-text {
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--login-teal-dark);
}

.erp-login-heading {
    margin: 0 0 0.35rem;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--login-text);
}

.erp-login-subtitle {
    margin: 0 0 1.75rem;
    font-size: 0.9rem;
    color: var(--login-text-muted);
    line-height: 1.5;
}

.erp-login-alert {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    margin-bottom: 1.25rem;
    padding: 0.85rem 1rem;
    border-radius: 10px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
    font-size: 0.875rem;
    line-height: 1.45;
}

.erp-login-alert i {
    flex-shrink: 0;
    margin-top: 0.1rem;
    font-size: 1.1rem;
}

.erp-login-field {
    margin-bottom: 1.15rem;
}

.erp-login-field label {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
}

.erp-login-field input {
    display: block;
    width: 100%;
    padding: 0.65rem 0.9rem;
    border: 1px solid var(--login-input-border);
    border-radius: 8px;
    font-size: 0.925rem;
    font-family: inherit;
    color: var(--login-text);
    background: #fff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.erp-login-field input::placeholder {
    color: #9ca3af;
}

.erp-login-field input:focus {
    outline: none;
    border-color: var(--login-teal);
    box-shadow: 0 0 0 3px rgba(0, 168, 132, 0.15);
}

.erp-login-submit {
    display: block;
    width: 100%;
    margin-top: 0.5rem;
    padding: 0.72rem 1rem;
    border: none;
    border-radius: 8px;
    background: var(--login-teal);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
    box-shadow: 0 4px 14px rgba(0, 168, 132, 0.28);
}

.erp-login-submit:hover {
    background: var(--login-teal-dark);
}

.erp-login-submit:active {
    transform: translateY(1px);
    box-shadow: 0 2px 8px rgba(0, 168, 132, 0.22);
}

.erp-login-footer-note {
    margin-top: 2rem;
    text-align: center;
    font-size: 0.78rem;
    color: var(--login-text-muted);
    letter-spacing: 0.02em;
}

/* ── Responsive ── */

@media (max-width: 767.98px) {
    .erp-login-shell {
        padding: 1rem;
        align-items: flex-start;
    }

    .erp-login-card {
        flex-direction: column;
        min-height: auto;
        max-width: 440px;
    }

    .erp-login-brand {
        flex: none;
        min-height: 200px;
        padding: 1.75rem 1.5rem;
    }

    .erp-login-brand-title {
        font-size: 1.35rem;
    }

    .erp-login-brand-tagline {
        margin-bottom: 1.25rem;
        font-size: 0.82rem;
    }

    .erp-login-form-panel {
        padding: 2rem 1.5rem 2.25rem;
    }

    .erp-login-logo {
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 399.98px) {
    .erp-login-brand-features li {
        font-size: 0.72rem;
        padding: 0.35rem 0.6rem;
    }
}
