﻿/* ===========================================================
   RESET & BASE
=========================================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, sans-serif;
    background: #eef1f5; /* Fallback background color */
    /* --- Dynamic Background Properties --- */
    background-image: url('path/to/your/default-image.jpg'); /* ⬅️ Set initial image here */
    background-size: cover; /* Ensures image covers the whole body */
    background-position: center; /* Centers the image in the viewport */
    background-repeat: no-repeat; /* Prevents image tiling */
    transition: background-image 0.8s ease-in-out; /* Optional: Smooth visual change */
    /* ----------------------------------- */

    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ===========================================================
   HEADER
=========================================================== */
.top-header {
    width: 100%;
    background: transparent;
    padding: 15px 20px;
    /*border-bottom: 1px solid #ccc;*/
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.header-logo img {
    height: 100px;
    width: 100px;
    object-fit: contain;
}

.header-title {
    font-size: 26px;
    font-weight: bold;
    text-transform: uppercase;
    text-align: center;
    flex: 1;
    position: relative;
}

.header-notice {
    margin-top: 8px;
    font-size: 14px;
    color: #007bff;
    white-space: nowrap;
    overflow: hidden;
   /* border-top: 1px solid #ccc;*/
    padding: 5px 0;
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

    .header-notice span {
        display: inline-block;
        padding-left: 100%; /* start off-screen */
        animation: slide-left 15s linear infinite;
    }

@keyframes slide-left {
    0% {
        transform: translateX(0%);
    }

    100% {
        transform: translateX(-100%);
    }
}


.header-contact {
    text-align: right;
    font-size: 13px;
    line-height: 1.3;
}

    .header-contact p {
        margin: 2px 0;
        font-size: 20px;
    }

/* ===========================================================
   MAIN — TRACKING & LOGIN PANELS
=========================================================== */
.main-bg {
    display: flex;
    flex: 1;
    width: 100%;
    gap: 20px;
    padding: 20px;
    flex-wrap: wrap;
}

/* LEFT — TRACK CONSIGNMENT */
.box-card {
    flex: 1 1 40%;
    background: transparent;
   /* border: 1px solid #ddd;*/
    border-radius: 10px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 450px;
}

    .box-card img {
        width: 80px;
        margin-bottom: 20px;
    }

    .box-card p {
        font-size: 14px;
        margin-bottom: 10px;
    }

/* RIGHT — LOGIN WRAPPER */
.login-wrapper {
    flex: 1 1 55%;
    background: transparent;
   /* border: 1px solid #ddd;*/
    border-radius: 10px;
    padding: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 450px;
}

/* LOGIN CARD */
.login-card {
    width: 100%;
    max-width: 500px;
    background: #ffffff;
    padding: 35px;
    border-radius: 18px;
    box-shadow: 0px 6px 20px rgba(0,0,0,0.15);
    animation: fadeIn 0.6s ease-in-out;
    height:100%;
}

.login-header {
    text-align: center;
    margin-bottom: 25px;
}

.login-logo {
    width: 70px;
    margin-bottom: 10px;
}

.login-title {
    text-transform: uppercase;
    font-weight: 700;
    font-size: 20px;
}

/* ===========================================================
   FORM INPUT STYLES
=========================================================== */
.input-group-custom {
    position: relative;
}

.icon {
    position: absolute;
    left: 15px;
    top: 12px;
    font-size: 18px;
    color: #007bff;
}

.input-custom {
    padding-left: 45px !important;
    height: 45px;
    border-radius: 30px;
    margin-bottom: 12px;
}

.form-control {
    border-radius: 6px;
}

/* ===========================================================
   CAPTCHA
=========================================================== */
.captcha-box {
    /* Base Box Styling */
    width: 200px;
    padding: 10px 20px;
    margin: 20px auto;
    text-align: center;
    border: 3px solid #ff6347; /* Tomato Red Border */
    background-color: #f7f7f7;
    /* Text Styling */
    font-family: 'Times New Roman', serif;
    font-size: 36px;
    font-weight: bold;
    letter-spacing: 5px; /* Increase spacing for distortion */
    color: #444;
    /* --- Core Distortion Effects --- */
    /* Random Skew and Rotate (A fixed transform is used here) */
    transform: skewX(-10deg) rotate(-3deg);
    /* Text Shadow to Simulate Depth/Overlapping Lines */
    text-shadow: 1px 1px 0 #fff, /* White base shadow */
    -1px -1px 0 #000, /* Black line simulation */
    2px 2px 5px rgba(0, 0, 0, 0.4); /* Blur effect */
    /* Box Shadow to simulate lifted paper and lines */
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.1), /* Inner shadow */
    5px 5px 15px rgba(0, 0, 0, 0.3); /* Outer shadow */
    /* Optional: Use a simple line pattern (requires an image/SVG, or using multiple shadows) */
    /* background-image: url('data:image/svg+xml;utf8,<svg ...>'); */
}

    /* Optional: Adding a pseudo-element for an "overlaid line" effect */
    .captcha-box::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 0;
        width: 100%;
        height: 3px;
        background: linear-gradient(to right, transparent 0%, #00aaff 40%, #ffaa00 60%, transparent 100%); /* Blue/Orange line */
        transform: rotate(5deg);
        opacity: 0.6;
        z-index: 1; /* Place above the text */
    }

/* Ensure the parent is positioned for absolute pseudo-elements */
.captcha-box {
    position: relative;
    overflow: hidden; /* Important to keep pseudo-element within bounds */
}

/* ===========================================================
   BUTTONS
=========================================================== */
.btn-login {
    width: 100%;
    margin-top: 15px;
    height: 45px;
    border-radius: 30px;
    background: #007bff;
    color: #fff;
    font-size: 18px;
    border: 0;
}

.btn-pink {
    width: 100%;
    background: #d63384;
    border: none;
    color: white;
    padding: 12px;
    border-radius: 6px;
    margin-top: 10px;
}

/* ===========================================================
   FOOTER
=========================================================== */
.page-footer {
    text-align: center;
    padding: 10px;
    font-size: 0.8rem;
    color: #777;
    margin-top: 40px;
    
}

.dev img {
    height: 40px;
    margin-top: 5px;
}

/* ===========================================================
   ANIMATIONS
=========================================================== */
@keyframes fadeIn {
    from {
        transform: translateY(30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ===========================================================
   MOBILE RESPONSIVE
=========================================================== */
@media (max-width: 768px) {
    /* Stack header vertically */
    .header-row {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .header-logo img {
        height: 80px;
        width: 80px;
    }

    .header-title {
        font-size: 22px;
        margin-top: 5px;
    }

    /* Sliding notice wrap on mobile */
    .header-notice {
        font-size: 13px;
        padding: 4px 0;
    }

        .header-notice span {
            animation: slide-left 15s linear infinite;
        }

    .header-contact {
        margin-top: 10px;
        text-align: center;
    }

    /* Stack main panels vertically */
    .main-bg {
        flex-direction: column;
        padding: 10px;
        gap: 15px;
    }

    .box-card,
    .login-wrapper {
        flex: 1 1 100%;
        min-height: auto;
        padding: 20px;
    }

    .login-wrapper {
        align-items: flex-start;
    }

    .login-card {
        width: 100%;
        max-width: none;
        padding: 25px;
    }

    /* Adjust buttons and inputs */
    .input-custom, .btn-login, .btn-pink {
        height: 45px;
        font-size: 16px;
    }

    .captcha-box {
        font-size: 16px;
        padding: 8px 16px;
    }

    .box-card img {
        width: 60px;
        margin-bottom: 15px;
    }
}
