﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --primary: #1e3c72;
    --primary-light: #2a5298;
    --secondary: #4facfe;
    --accent: #00f2fe;
    --success: #43e97b;
    --danger: #ff6b6b;
    --text: #333;
    --text-light: #666;
    --white: #fff;
    --gray: #f5f5f5;
    --border: #ddd;
    --green: #4CAF50;
    --green-light: #8BC34A;
}

body {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    position: relative;
    overflow-x: hidden;
}

.background-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.08;
    animation: float 15s infinite ease-in-out;
}

.shape-1 {
    width: 300px;
    height: 300px;
    background: var(--secondary);
    top: -150px;
    left: -150px;
    animation-delay: 0s;
}

.shape-2 {
    width: 200px;
    height: 200px;
    background: var(--accent);
    bottom: -100px;
    right: -100px;
    animation-delay: 5s;
}

.shape-3 {
    width: 150px;
    height: 150px;
    background: var(--green);
    top: 50%;
    right: 10%;
    animation-delay: 10s;
}

.shape-4 {
    width: 100px;
    height: 100px;
    background: var(--green-light);
    bottom: 20%;
    left: 5%;
    animation-delay: 7s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(10deg);
    }
}

.login-container {
    width: 100%;
    max-width: 1100px;
    z-index: 1;
    position: relative;
    display: flex;
    gap: 30px;
    align-items: stretch;
}

/* Contact Section Styles */
.contact-section {
    flex: 1;
    display: flex;
    align-items: center;
}

.contact-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    padding: 30px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .contact-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
    }

    .contact-card h3 {
        color: var(--primary);
        margin-bottom: 15px;
        font-size: 24px;
    }

.contact-description {
    color: var(--text-light);
    margin-bottom: 25px;
    line-height: 1.6;
}

.contact-methods {
    margin-bottom: 25px;
}

.contact-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--green) 0%, var(--green-light) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    flex-shrink: 0;
}

.contact-details h4 {
    color: var(--primary);
    margin-bottom: 5px;
}

.contact-details p {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 10px;
}

.contact-numbers {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.whatsapp-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--green);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    padding: 5px 0;
}

    .whatsapp-link:hover {
        color: var(--primary);
        text-decoration: underline;
    }

.business-hours {
    border-top: 1px solid var(--border);
    padding-top: 20px;
}

    .business-hours h4 {
        color: var(--primary);
        margin-bottom: 10px;
    }

    .business-hours p {
        color: var(--text-light);
        font-size: 14px;
        margin-bottom: 5px;
    }

/* Login Card Styles */
.login-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transform: translateY(0);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    flex: 1;
}

    .login-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
    }

.brand-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    padding: 30px 20px;
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    .brand-section::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path d="M0,0 L100,0 L100,100 Z" fill="rgba(255,255,255,0.05)"/></svg>');
        background-size: cover;
    }

.logo-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.logo {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1;
    margin-bottom: 5px;
}

.logo-icon {
    font-size: 32px;
    margin-right: 10px;
    color: var(--secondary);
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.logo-text {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.maju {
    color: var(--white);
}

.e {
    color: var(--secondary);
    font-weight: 800;
}

.invoice {
    color: var(--white);
}

.version-info {
    position: relative;
    z-index: 1;
    text-align: right;
    color: rgba(255, 255, 255, 0.9);
}

.version-text {
    font-size: 14px;
    margin-bottom: 5px;
}

.version-number {
    font-size: 18px;
    font-weight: 700;
    color: var(--green-light);
}

.company-title {
    font-size: 16px;
    opacity: 0.9;
    margin-top: 5px;
    position: relative;
    z-index: 1;
    text-align: left;
}

.login-form-section {
    padding: 30px;
}

.welcome-text {
    text-align: center;
    margin-bottom: 25px;
}

.welcome-title {
    font-size: 24px;
    color: var(--primary);
    margin-bottom: 5px;
}

.welcome-sub {
    color: var(--text-light);
    font-size: 14px;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text);
    font-size: 14px;
}

.input-field {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 15px;
    color: var(--primary);
    font-size: 16px;
    z-index: 2;
}

.form-control {
    width: 100%;
    padding: 12px 15px 12px 45px;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.3s;
    background: var(--gray);
    position: relative;
    z-index: 1;
}

    .form-control:focus {
        outline: none;
        border-color: var(--primary);
        box-shadow: 0 0 0 2px rgba(30, 60, 114, 0.2);
        background: var(--white);
    }

.password-toggle {
    position: absolute;
    right: 15px;
    cursor: pointer;
    color: var(--text-light);
    z-index: 2;
    transition: color 0.3s;
}

    .password-toggle:hover {
        color: var(--primary);
    }

.forgot-password {
    display: inline-block;
    margin-top: 8px;
    color: var(--primary);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
    font-weight: 500;
}

    .forgot-password:hover {
        color: var(--secondary);
        text-decoration: underline;
    }

.login-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--white);
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

    .login-btn::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
        transition: left 0.5s;
    }

    .login-btn:hover::before {
        left: 100%;
    }

    .login-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(30, 60, 114, 0.4);
    }

    .login-btn:active {
        transform: translateY(0);
    }

.error-message {
    background: #ffeaea;
    color: #d32f2f;
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    border-left: 4px solid #d32f2f;
    animation: fadeIn 0.3s ease;
}

.success-message {
    background: #e8f5e9 !important;
    color: #2e7d32 !important;
    border-left-color: #2e7d32 !important;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Footer Styles */
.footer {
    margin-top: 30px;
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    z-index: 1;
    width: 100%;
    max-width: 1100px;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.company-logo {
    height: 30px;
    margin-bottom: 10px;
}

.copyright {
    margin-bottom: 10px;
}

.footer-links {
    display: flex;
    gap: 20px;
}

    .footer-links a {
        color: rgba(255, 255, 255, 0.9);
        text-decoration: none;
        transition: color 0.3s;
    }

        .footer-links a:hover {
            color: var(--white);
            text-decoration: underline;
        }

/* Responsive Design */
@media (max-width: 768px) {
    .login-container {
        flex-direction: column;
        max-width: 100%;
    }

    .contact-section {
        order: 2;
    }

    .login-card {
        order: 1;
    }
}

@media (max-width: 480px) {
    .login-form-section {
        padding: 25px 20px;
    }

    .brand-section {
        padding: 25px 15px;
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .logo-container {
        align-items: center;
    }

    .logo-text {
        font-size: 24px;
    }

    .logo-icon {
        font-size: 28px;
    }

    .version-info {
        text-align: center;
    }

    .contact-card {
        padding: 20px;
    }

    .footer-links {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-height: 700px) {
    body {
        padding: 10px;
    }

    .login-container {
        margin: 10px 0;
    }

    .footer {
        margin-top: 15px;
    }
}

.loading {
    pointer-events: none;
    opacity: 0.7;
}
/* ===== FINAL BRAND STRIP (override) ===== */
.brand-strip {
    width: 100%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: #fff;
    border-radius: 20px 20px 0 0; /* match login-card */
    padding: 14px 18px;
    position: relative;
    overflow: hidden;
}

    .brand-strip::before {
        content: '';
        position: absolute;
        inset: 0;
        background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path d="M0,0 L100,0 L100,100 Z" fill="rgba(255,255,255,0.06)"/></svg>');
        background-size: cover;
        pointer-events: none;
    }

/* ✅ Perfect center (logo stays center even with left text) */
.brand-strip-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr auto 1fr; /* left | center | right */
    align-items: center;
    min-height: 130px; /* more space for bigger logo */
}

/* Left version */
.strip-left {
    justify-self: start;
    line-height: 1.1;
}

    .strip-left .ver-label {
        font-size: 12px;
        opacity: .9;
    }

    .strip-left .ver-num {
        font-size: 16px;
        font-weight: 900;
        color: var(--green-light);
    }

/* Center logo */
.strip-center {
    justify-self: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ✅ Light background behind logo (clear visibility) */
.strip-logo-wrap {
    padding: 10px 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255,255,255,.30);
    box-shadow: 0 16px 35px rgba(0,0,0,.22);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* ✅ Bigger logo */
.strip-logo {
    height: 105px; /* increase to 115/125 if you want */
    width: auto;
    max-width: 520px;
    object-fit: contain;
    display: block;
    background: transparent;
    filter: drop-shadow(0 10px 18px rgba(0,0,0,.25));
}

/* Right spacer keeps perfect center */
.strip-right {
    justify-self: end;
}

/* Responsive */
@media (max-width: 992px) {
    .brand-strip-grid {
        grid-template-columns: 1fr;
        gap: 10px;
        min-height: auto;
        text-align: center;
    }

    .strip-right {
        display: none;
    }

    .strip-left {
        justify-self: center;
    }

    .strip-logo {
        height: 90px;
    }
}

