@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700&display=swap');

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body,
input,
select,
textarea,
button {
    font-family: 'Outfit', sans-serif;
}

/* ─── BODY ─────────────────────────────────────────── */

body {
    min-height: 100vh;
    display: flex;
    background: #fff;
    overflow: hidden;
    -webkit-user-select: none;
    user-select: none;
}

/* ─── CONTAINER — full-viewport two-column split ─────── */

.login-container {
    display: flex;
    width: 100%;
    min-height: 100vh;
}

/* ─── LEFT: FORM PANEL ──────────────────────────────── */

.login-form {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex: 1;
    background: #fff;
    padding: 48px 24px;
    animation: fadeUp 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Inner content — max-w-md, centered (matches React design) */
.login-form-inner {
    width: 100%;
    max-width: 448px;
}

/* ─── FORM HEADER ───────────────────────────────────── */

.form-header {
    margin-bottom: 32px;
}

/* Logo row */
.form-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 28px;
}

.form-logo i {
    font-size: 16px;
    color: #1e26b8;
    background: #ecf3ff;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.form-logo span {
    font-size: 16px;
    font-weight: 700;
    color: #101828;
}

.form-header h2 {
    font-size: 30px;          /* text-3xl */
    font-weight: 700;
    color: #1d2939;
    line-height: 1.2;
    margin-bottom: 6px;
}

.form-header p {
    font-size: 14px;
    color: #6b7280;           /* text-gray-500 */
    line-height: 1.5;
}

/* ─── REQUIRED STAR ─────────────────────────────────── */

.required {
    color: #ef4444;           /* text-red-500 */
    margin-left: 2px;
}

/* ─── FORM FIELDS ───────────────────────────────────── */

form {
    display: flex;
    flex-direction: column;
    gap: 20px;                /* space-y-5 */
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    display: block;
    font-size: 13.5px;
    font-weight: 500;
    color: #374151;           /* text-gray-700 */
    margin-bottom: 6px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 16px;       /* py-3 px-4 */
    border: 1px solid #d1d5db; /* border-gray-300 */
    border-radius: 12px;      /* rounded-xl */
    font-size: 14px;
    font-family: 'Outfit', sans-serif;
    color: #111827;
    background: #fff;
    outline: none;
    transition: border-color 0.18s, box-shadow 0.18s;
    -webkit-appearance: none;
    appearance: none;
}

/* Custom dropdown arrow */
.form-group select {
    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='%239ca3af' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 42px;
    cursor: pointer;
}

.form-group input:focus,
.form-group select:focus {
    border-color: #1e26b8;
    box-shadow: 0 0 0 3px rgba(30, 38, 184, 0.12); /* focus:ring-2 ring-blue-500 */
}

.form-group input::placeholder {
    color: #9ca3af;           /* placeholder:text-gray-400 */
}

.form-group input:disabled,
.form-group select:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ─── PASSWORD TOGGLE ───────────────────────────────── */

.password-input-container {
    position: relative;
}

.password-input-container input {
    padding-right: 48px;
}

.toggle-password {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    transition: color 0.2s;
    width: auto;
    height: auto;
    margin: 0;
}

.toggle-password:hover {
    color: #4b5563;
}

/* ─── SUBMIT BUTTON ─────────────────────────────────── */

button[type="submit"] {
    width: 100%;
    padding: 12px 16px;       /* py-3 px-4 */
    background: #1e26b8;
    border: none;
    border-radius: 12px;      /* rounded-xl */
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    cursor: pointer;
    transition: background 0.18s, transform 0.15s, box-shadow 0.18s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 4px;
}

button[type="submit"]:hover:not(:disabled) {
    background: #171fa0;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(30, 38, 184, 0.28);
}

button[type="submit"]:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: none;
}

button[type="submit"]:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Button spinner animation */
.btn-spin {
    animation: spin 0.8s linear infinite;
}

/* ─── FOOTER NOTE ───────────────────────────────────── */

.form-footer-note {
    margin-top: 24px;
    font-size: 11.5px;
    text-align: center;
    color: #9ca3af;           /* text-gray-400 */
    line-height: 1.7;
}

/* ─── RIGHT: DARK BRAND PANEL ───────────────────────── */

.login-banner {
    display: none;            /* hidden on small screens, shown on lg */
    width: 50%;
    background-color: #0c0f2e; /* brand-950 equivalent */
    position: relative;
    overflow: hidden;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

/* Grid SVG — top right */
.banner-grid-tr {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 450px;
    pointer-events: none;
    z-index: 0;
    opacity: 0.6;
}

/* Grid SVG — bottom left, rotated 180° */
.banner-grid-bl {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    max-width: 450px;
    pointer-events: none;
    z-index: 0;
    transform: rotate(180deg);
    opacity: 0.6;
}

/* Branding block — centered */
.banner-center {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    max-width: 380px;
}

/* Icon box (gradient square with truck) */
.banner-icon-box {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #1e26b8 0%, #7592ff 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    box-shadow: 0 8px 32px rgba(30, 38, 184, 0.40);
}

.banner-icon-box i {
    font-size: 24px;
    color: #fff;
}

.banner-brand {
    height: 68px;
    width: auto;
    margin-bottom: 6px;
}

.banner-tagline {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.38);
    line-height: 1.6;
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* ─── ROTATING QUOTE BLOCK ──────────────────────────── */

.banner-quote-block {
    position: absolute;
    bottom: 52px;
    left: 40px;
    right: 40px;
    z-index: 2;
}

.banner-quote-mark {
    font-size: 52px;
    line-height: 1;
    color: rgba(255, 255, 255, 0.12);
    font-family: Georgia, serif;
    margin-bottom: 6px;
}

.banner-quote-text {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.7;
    font-weight: 600;
    font-style: italic;
    margin: 0 0 14px;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.banner-quote-text.quote-visible {
    opacity: 1;
    transform: translateY(0);
}

.banner-quote-dots {
    display: flex;
    gap: 6px;
}

.banner-quote-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.22);
    transition: background 0.3s, transform 0.3s;
}

.banner-quote-dot.active {
    background: rgba(255, 255, 255, 0.70);
    transform: scale(1.3);
}

.banner-footer {
    position: absolute;
    bottom: 24px;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 11px;
    color: rgba(255,255,255,0.22);
    z-index: 2;
}

/* ─── LOADER SCREEN ─────────────────────────────────── */

#loader-screen {
    position: fixed;
    inset: 0;
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    animation: loaderFadeIn 0.25s ease;
}


@keyframes loaderFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* ─── RESPONSIVE ────────────────────────────────────── */

/* Show right panel on large screens (≥ 1024px) */
@media (min-width: 1024px) {
    .login-banner {
        display: flex;
    }

    .login-form {
        flex: none;
        width: 50%;
    }
}

@media (max-width: 1023px) {
    .login-form {
        width: 100%;
        padding: 48px 24px;
    }
}

@media (max-width: 480px) {
    body {
        overflow: auto;
    }

    .login-form {
        padding: 48px 20px;
        min-height: 100vh;
        justify-content: flex-start;
        padding-top: 64px;
    }

    .login-form-inner {
        max-width: 100%;
    }
}
