﻿


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
    background-image: url('../../Photos/bgv.png');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    position: relative;
}

/* small toast / swal in top right corner */
.toast-corner {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    pointer-events: none;
}

.toast-message {
    background: white;
    color: #1e293b;
    padding: 12px 20px;
    border-radius: 60px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2), 0 2px 10px 0 rgba(0,0,0,0.1);
    font-size: 0.9rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border-left: 4px solid #FF931F;
    transform: translateX(120%);
    animation: slideInRight 0.3s forwards;
    max-width: 320px;
    pointer-events: auto;
    backdrop-filter: blur(4px);
}

    .toast-message.success {
        border-left-color: #10b981;
    }

    .toast-message.error {
        border-left-color: #ef4444;
    }

    .toast-message i {
        font-size: 1.1rem;
    }

    .toast-message.success i {
        color: #10b981;
    }

    .toast-message.error i {
        color: #ef4444;
    }

@keyframes slideInRight {
    to {
        transform: translateX(0);
    }
}

.container {
    max-width: 1000px;
    width: 100%;
    background: #FFFFFF;
    border-radius: 32px;
    box-shadow: 0 30px 50px rgba(0, 0, 0, 0.2), 0 10px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-wrap: wrap;
    overflow: hidden;
    transition: all 0.2s ease;
    min-height: 580px;
}

/* ========= LEFT PANEL ========= */
.visualization-panel {
    flex: 1 1 45%;
    background: linear-gradient(145deg, #fff9f0, #ffedd9);
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    position: relative;
    color: #2b2b2b;
}

.system-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: -10px;
    margin-bottom: 30px;
    text-align: center;
}

.title-logo {
    font-size: 2.8rem;
    color: #FF931F;
    filter: drop-shadow(0 6px 8px rgba(255,147,31,0.3));
    margin-bottom: 6px;
}

.system-title h1 {
    font-size: 2rem;
    font-weight: 850;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #b85e00, #FF931F);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.2rem;
    line-height: 1.0;
}

.login-header h2 {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #b85e00, #FF931F);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.2rem;
    line-height: 1.2;
}

.system-title p {
    font-size: 0.95rem;
    color: #6f4f2e;
    opacity: 0.8;
    font-weight: 400;
}

.module-showcase {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px 15px;
    margin-top: 20px;
    justify-items: center;
}

.showcase-card {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(4px);
    width: 100%;
    max-width: 140px;
    border-radius: 28px;
    padding: 20px 8px 12px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 10px 20px -8px rgba(255, 147, 31, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.7);
    transition: transform 0.2s, border 0.2s;
    cursor: pointer;
}

    .showcase-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 0 25px rgba(255, 147, 31, 0.6), 0 10px 25px -5px rgba(255, 147, 31, 0.4);
        border-color: #FF931F;
        background: white;
    }
/* .showcase-card.active {
            border: 2px solid #FF931F;
            background: white;
            transform: scale(1.02);
            box-shadow: 0 15px 25px -8px rgba(255,147,31,0.4);
        } */

.card-icon {
    font-size: 36px;
    margin-bottom: 10px;
}

    .card-icon.erp {
        color: #e07d1a;
    }

    .card-icon.billing {
        color: #2ecc71;
    }

    .card-icon.gateway {
        color: #e74c3c;
    }

    .card-icon.surveillance {
        color: #9b59b6;
    }

    .card-icon.iot {
        color: #f39c12;
    }

    .card-icon.vts {
        color: #1abc9c;
    }

.card-title {
    font-weight: 700;
    font-size: 0.9rem;
    color: #482300;
    margin-bottom: 4px;
}

.card-badge {
    background: #FF931F20;
    color: #b15500;
    font-size: 0.65rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 40px;
    width: fit-content;
    margin-top: 4px;
}

/* slogan area below showcase cards */
.slogan-area {
    margin-top: 30px;
    padding: 15px 20px;
    background: rgba(255, 147, 31, 0.1);
    border-radius: 60px;
    text-align: center;
    font-weight: 500;
    color: #7b4700;
    border: 1px dashed #FF931F;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .slogan-area i {
        color: #FF931F;
        margin-right: 8px;
        font-size: 1.1rem;
    }

/* ========= RIGHT LOGIN PANEL ========= */
.login-panel {
    flex: 1 1 45%;
    padding: 2.2rem 2rem;
    background: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: -15px;
    margin-bottom: 20px;
    text-align: center;
}

.login-logo {
    font-size: 2.8rem;
    color: #FF931F;
    filter: drop-shadow(0 6px 8px rgba(255,147,31,0.3));
    margin-bottom: 6px;
}

.login-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #1E1E2A;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.login-header p {
    color: #6b7280;
    font-size: 0.95rem;
    margin-top: 5px;
}

/* form sections */
.form-section {
    transition: opacity 0.2s ease;
}

.hidden-section {
    display: none;
}

.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

    .form-group label {
        display: block;
        font-weight: 600;
        font-size: 0.85rem;
        color: #2d2d2d;
        margin-bottom: 5px;
        letter-spacing: 0.3px;
    }

.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

    .input-with-icon i {
        position: absolute;
        left: 15px;
        color: #FF931F;
        font-size: 1rem;
        z-index: 2;
    }

.form-control, .form-select {
    width: 100%;
    padding: 14px 50px 14px 46px;
    border: 1.5px solid #e5e7eb;
    border-radius: 18px;
    font-size: 0.95rem;
    background: #fafafa;
    transition: all 0.15s;
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23FF931F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 16px;
}

    .form-control:focus, .form-select:focus {
        border-color: #FF931F;
        background: white;
        outline: none;
        box-shadow: 0 0 0 4px rgba(255,147,31,0.15);
    }

.password-toggle {
    position: absolute;
    right: 45px;
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    z-index: 3;
    font-size: 1.1rem;
    padding: 0;
    line-height: 1;
    margin-top: -12px;
}

    .password-toggle:hover {
        color: #FF931F;
    }

.remember-forgot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 1rem 0 1.8rem 0;
    font-size: 0.85rem;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #374151;
}

.forgot-password {
    color: #FF931F;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    background: none;
    border: none;
    font-size: 0.85rem;
}

    .forgot-password:hover {
        text-decoration: underline;
    }

.login-btn {
    background: #FF931F;
    color: white;
    border: none;
    padding: 16px 20px;
    border-radius: 28px;
    font-size: 1.2rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: background 0.2s;
    width: 100%;
    border: 1px solid transparent;
    box-shadow: 0 12px 20px -10px rgba(255,147,31,0.5);
    margin-bottom: 15px;
}

    .login-btn:hover {
        background: #e07d1a;
    }

.secondary-btn {
    background: white;
    color: #FF931F;
    border: 2px solid #FF931F;
    padding: 12px 20px;
    border-radius: 28px;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
}

    .secondary-btn:hover {
        background: #fff0e0;
    }

.otp-input-group {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin: 20px 0;
}

.otp-box {
    width: 50px;
    height: 60px;
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    font-size: 1.5rem;
    font-weight: 600;
    text-align: center;
    background: #fafafa;
    transition: border 0.15s;
}

    .otp-box:focus {
        border-color: #FF931F;
        outline: none;
        box-shadow: 0 0 0 3px rgba(255,147,31,0.2);
    }

.info-text {
    text-align: center;
    color: #6b7280;
    font-size: 0.9rem;
    margin: 15px 0;
}

.back-link {
    text-align: center;
    margin-top: 15px;
}

    .back-link button {
        background: none;
        border: none;
        color: #FF931F;
        font-weight: 600;
        cursor: pointer;
        font-size: 0.9rem;
    }

        .back-link button:hover {
            text-decoration: underline;
        }

.module-access {
    display: none;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    margin-top: 20px;
    font-size: 0.8rem;
    color: #7c7c7c;
}

    .footer-links a {
        color: #5f5f6b;
        text-decoration: none;
        display: inline-flex;
        align-items: center;
        gap: 5px;
    }

        .footer-links a i {
            color: #FF931F;
        }

/* signup prompt */
.signup-prompt {
    text-align: center;
    margin: 15px 0 5px;
    font-size: 0.9rem;
    color: #4b5563;
}

    .signup-prompt button {
        background: none;
        border: none;
        color: #FF931F;
        font-weight: 700;
        cursor: pointer;
        font-size: 0.9rem;
    }

        .signup-prompt button:hover {
            text-decoration: underline;
        }

/* ========= RESPONSIVE ========= */
@media (max-width: 800px) {


    .container {
        flex-direction: column;
        border-radius: 28px;
        min-height: auto;
        max-width: 480px;
    }

    .login-panel {
        padding: 1.8rem 1.5rem;
    }

    .module-access {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
        margin: 25px 0 15px;
    }

    .module-btn {
        background: #f5f5f5;
        border: none;
        border-radius: 50px;
        padding: 8px 15px;
        font-size: 0.75rem;
        font-weight: 600;
        cursor: pointer;
        display: inline-flex;
        align-items: center;
        gap: 6px;
        color: #3a3a3a;
        border: 1px solid #e0e0e0;
        transition: all 0.15s;
    }

        .module-btn i {
            color: #FF931F;
            font-size: 0.8rem;
        }

    .login-header {
        margin-top: 0;
    }
}

@media (max-width: 480px) {
    body {
        padding: 8px;
    }

    .container {
        max-width: 380px;
    }

    .otp-box {
        width: 45px;
        height: 55px;
    }
}

@media (min-width: 801px) {
    .module-access {
        display: none;
    }
}


.module-btn {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
}

.status {
    display: flex;
    align-items: center;
    font-size: 12px;
    font-weight: 600;
}

.dot {
    width: 8px;
    height: 8px;
    background-color: #28a745;
    border-radius: 50%;
    margin-right: 5px;
}

/* Optional glowing effect */
.dot {
    box-shadow: 0 0 6px #28a745;
}

/* Updated footer with copyright and powered by */
.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 20px;
    font-size: 0.8rem;
    color: #6b7280;
    border-top: 1px solid #e5e7eb;
    padding-top: 20px;
}

.footer-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #5f5f6b;
    text-decoration: none;
    position: relative;
    cursor: pointer;
}

    .footer-item i {
        color: #FF931F;
        font-size: 0.9rem;
    }

    /* hover tooltip for contact info */
    .footer-item[data-tooltip] {
        position: relative;
    }

        .footer-item[data-tooltip]:hover::after {
            content: attr(data-tooltip);
            position: absolute;
            bottom: 100%;
            left: 50%;
            transform: translateX(-50%);
            background: #1e293b;
            color: white;
            padding: 6px 12px;
            border-radius: 30px;
            font-size: 0.75rem;
            white-space: nowrap;
            z-index: 10;
            box-shadow: 0 4px 10px rgba(0,0,0,0.2);
            pointer-events: none;
        }

.copyright {
    color: #9ca3af;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

    .copyright i {
        color: #FF931F;
    }

.title-logo {
    height: 150px; /* Adjust this value as needed */
    width: auto; /* Keeps proportions */
}

.title-logo1 {
    height: 75px; /* Adjust this value as needed */
    width: auto; /* Keeps proportions */
}
/* Desktop only (min-width 801px) */
@media (min-width: 801px) {
    html {
        zoom: 0.8;
        margin-top: 60px; /* sets default scale to 80% */
    }
}
/* ===== FORCE LEFT PANEL IN MOBILE ===== */
/* ===== MOBILE LEFT PANEL FULL FIX ===== */
@media (max-width: 800px) {
    .title-logo {
        height: 150px; /* Adjust this value as needed */
        width: auto; /* Keeps proportions */
    }

    .module-showcase {
        display: grid !important;
        /* Fewer cards per row for smaller screens */
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)) !important;
        gap: 10px !important;
    }

    .showcase-card {
        max-width: 100% !important;
        padding: 10px !important; /* reduce padding */
        font-size: 0.85rem !important; /* smaller text */
        min-height: 100px !important; /* smaller card height */
    }

    .card-badge {
        display: none;
    }

    body {
        overflow: auto !important;
        overflow: hidden;
        background-image: none;
    }

    html {
        zoom: 100% !important;
    }

    .container {
        flex-direction: column !important;
        height: auto !important;
        min-height: auto !important;
        max-height: none !important;
        max-width: 1000px !important;
        overflow-y: hidden;
    }

    .banner-container,
    .visualization-panel,
    .module-access {
        display: none !important;
    }
    /* Push text of ERP Core card only toward bottom */
    .showcase-card[data-module="erp"] .card-title,
    .showcase-card[data-module="erp"] .card-badge {
        margin-top: 8px; /* adjust the value to move text down */
    }

    .showcase-card[data-module="iot"] .card-title,
    .showcase-card[data-module="iot"] .card-badge {
        margin-top: 8px; /* adjust the value to move text down */
    }

    .visualization-panel {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        height: 50px !important;
        max-height: none !important;
        overflow: visible !important;
        padding: 20px !important;
    }

    .module-showcase {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 15px !important;
        margin-top: -20px;
        margin-bottom: -15px;
    }

    .showcase-card {
        max-width: 100% !important;
    }

    .module-access {
        display: none !important;
    }

    .login-panel {
        background: #ffffff; /* panel color */
        padding: 30px;
        border-radius: 60px 60px 0 0; /* strong top curve */
        box-shadow: 0 15px 35px rgba(0,0,0,0.3); /* deep, visible shadow */
        position: relative;
        z-index: 10;
    }
}


/* Add to your existing styles */
.login-btn .hidden {
    display: none;
}

.login-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-loading i {
    margin-right: 8px;
}

.fa-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}


/* Password strength indicator */
.password-strength {
    margin-top: 5px;
    padding: 0 10px;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Optional: Add visual feedback for password fields */
/*.form-control:invalid {
    border-color: #ef4444;
}

.form-control:valid {
    border-color: #10b981;
}*/
