﻿*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #F3F4F6;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.login-wrap {
    display: flex;
    width: 100%;
    max-width: 860px;
    min-height: 560px;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 32px rgba(0,0,0,0.10);
    background: #fff;
}

/* ── Left Panel ── */
.login-left {
    width: 44%;
    background: #0B3D91;
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

    .login-left .circle1 {
        position: absolute;
        width: 260px;
        height: 260px;
        border-radius: 50%;
        border: 38px solid rgba(255,255,255,0.05);
        bottom: -70px;
        right: -70px;
    }

    .login-left .circle2 {
        position: absolute;
        width: 140px;
        height: 140px;
        border-radius: 50%;
        border: 25px solid rgba(255,255,255,0.04);
        top: 50px;
        right: 20px;
    }

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 1;
}

.brand-icon {
    width: 36px;
    height: 36px;
    background: #1EC8A0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
}

.brand-name {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
}

.brand-tag {
    font-size: 10px;
    color: rgba(255,255,255,0.45);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-top: 1px;
}

.left-hero {
    z-index: 1;
}

.left-headline {
    font-size: 24px;
    font-weight: 600;
    color: #fff;
    line-height: 1.4;
    margin-bottom: 10px;
}

    .left-headline span {
        color: #1EC8A0;
    }

.left-desc {
    font-size: 13px;
    color: rgba(255,255,255,0.5);
    line-height: 1.7;
    margin-bottom: 1.8rem;
}

.feature-list {
    list-style: none;
    z-index: 1;
}

    .feature-list li {
        display: flex;
        align-items: center;
        gap: 10px;
        font-size: 13px;
        color: rgba(255,255,255,0.65);
        padding: 7px 0;
        border-bottom: 0.5px solid rgba(255,255,255,0.06);
    }

        .feature-list li:last-child {
            border-bottom: none;
        }

.feature-dot {
    width: 22px;
    height: 22px;
    min-width: 22px;
    border-radius: 50%;
    background: rgba(30,200,160,0.15);
    border: 0.5px solid rgba(30,200,160,0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1EC8A0;
    font-size: 12px;
}

.left-footer {
    font-size: 11px;
    color: rgba(255,255,255,0.50);
    z-index: 1;
}

/* ── Right Panel ── */
.login-right {
    flex: 1;
    padding: 2.5rem 2.2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #fff;
}

.login-greeting {
    font-size: 22px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 4px;
}

.login-sub {
    font-size: 13px;
    color: #6B7280;
    margin-bottom: 2rem;
}

/* Toasts */
.toast {
    display: none;
    align-items: center;
    gap: 8px;
    background: #0B3D91;
    color: #fff;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 1rem;
}

    .toast.show {
        display: flex;
    }

    .toast i {
        color: #1EC8A0;
    }

.toast-err {
    display: none;
    align-items: center;
    gap: 8px;
    background: #FEF2F2;
    color: #991B1B;
    border: 0.5px solid #FCA5A5;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 1rem;
}

    .toast-err.show {
        display: flex;
    }

/* Form */
.form-group {
    margin-bottom: 1.1rem;
}

.form-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: #6B7280;
    margin-bottom: 6px;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

.input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 12px;
    color: #9CA3AF;
    font-size: 17px;
    pointer-events: none;
    display: flex;
    align-items: center;
    line-height: 1;
    z-index: 1;
}

.form-input {
    width: 100%;
    height: 42px;
    padding: 0 14px 0 42px;
    border: 1px solid #D1D5DB;
    border-radius: 8px;
    font-size: 14px;
    color: #111827;
    background: #fff;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
    font-family: inherit;
}

    .form-input::placeholder {
        color: #9CA3AF;
        opacity: 1;
    }

    .form-input:focus {
        border-color: #0B3D91;
        box-shadow: 0 0 0 3px rgba(11,61,145,0.10);
    }

    .form-input:hover:not(:focus) {
        border-color: #9CA3AF;
    }

    .form-input.error {
        border-color: #EF4444;
    }

.loc-ac-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 50;
    background: #fff;
    border: 1px solid #D1D5DB;
    border-radius: 8px;
    margin-top: 4px;
    max-height: 220px;
    overflow-y: auto;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

.loc-ac-item {
    padding: 10px 14px;
    font-size: 13.5px;
    color: #111827;
    cursor: pointer;
    border-bottom: 1px solid #F1F3F5;
}

    .loc-ac-item:last-child {
        border-bottom: none;
    }

    .loc-ac-item:hover {
        background: #F1F5FF;
    }

.eye-btn {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    cursor: pointer;
    color: #9CA3AF;
    font-size: 17px;
    padding: 4px;
    display: flex;
    align-items: center;
    transition: color 0.15s;
}

    .eye-btn:hover {
        color: #374151;
    }

.row-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.4rem;
}

.remember-row {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    color: #6B7280;
    cursor: pointer;
}

    .remember-row input[type=checkbox] {
        width: 14px;
        height: 14px;
        accent-color: #0B3D91;
        cursor: pointer;
    }

.forgot-link {
    font-size: 13px;
    color: #0B3D91;
    text-decoration: none;
    cursor: pointer;
}

    .forgot-link:hover {
        text-decoration: underline;
    }

.login-btn {
    width: 100%;
    height: 42px;
    background: #0B3D91;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.15s, transform 0.1s;
    letter-spacing: 0.2px;
    font-family: inherit;
}

    .login-btn:hover {
        background: #0d47a9;
    }

    .login-btn:active {
        transform: scale(0.99);
    }

    .login-btn.loading {
        pointer-events: none;
        opacity: 0.8;
    }

.secure-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 1rem;
    font-size: 11px;
    color: #9CA3AF;
}

    .secure-badge i {
        color: #1EC8A0;
        font-size: 13px;
    }

.footer-note {
    text-align: center;
    font-size: 12px;
    color: #9CA3AF;
    margin-top: 1.4rem;
}

    .footer-note a {
        color: #0B3D91;
        text-decoration: none;
        cursor: pointer;
    }

        .footer-note a:hover {
            text-decoration: underline;
        }


@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.spin {
    display: inline-block;
    animation: spin 1s linear infinite;
}

/* ── Responsive ── */
@media (max-width: 620px) {
    .login-left {
        display: none;
    }

    .login-right {
        padding: 2rem 1.5rem;
    }
}

#locationMap {
    width: 100%;
    height: 180px;
    border-radius: 10px;
    margin-top: 10px;
    display: none;
    border: 1px solid #e5e7eb;
}


.gmp-location-input {
    display: block;
    width: 100%;
    height: 42px;
    padding-left: 42px;
    background-color: #fff;
    border: 1px solid #D1D5DB;
    border-radius: 8px;
    color-scheme: light;
    font-family: inherit;
    font-size: 14px;
}

.gmp-location-input:focus-within {
    border-color: #0B3D91;
    box-shadow: 0 0 0 3px rgba(11,61,145,0.10);
}
.input-wrap {
    position: relative;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

    .input-wrap input {
        flex: 1 1 100%; /* NEW — input always claims the full row, pushing siblings down */
    }

.input-icon {
    position: absolute;
    left: 12px;
    color: #9CA3AF;
    font-size: 17px;
    pointer-events: none;
    display: flex;
    align-items: center;
    z-index: 1;
}

.form-input {
    width: 100%;
    height: 42px;
    padding: 0 44px 0 42px;
    border: 1px solid #D1D5DB;
    border-radius: 8px;
    font-size: 14px;
    color: #111827;
    background: #fff;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
    font-family: inherit;
}

    .form-input::placeholder {
        color: #9CA3AF;
    }

    .form-input:focus {
        border-color: #0B3D91;
        box-shadow: 0 0 0 3px rgba(11,61,145,0.10);
    }

    .form-input:hover:not(:focus) {
        border-color: #9CA3AF;
    }

    .form-input.error {
        border-color: #EF4444;
        box-shadow: 0 0 0 3px rgba(239,68,68,0.08);
    }

    .form-input.success {
        border-color: #10B981;
        box-shadow: 0 0 0 3px rgba(16,185,129,0.08);
    }

.eye-btn {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    cursor: pointer;
    color: #9CA3AF;
    font-size: 17px;
    padding: 4px;
    display: flex;
    align-items: center;
    transition: color 0.15s;
}

    .eye-btn:hover {
        color: #374151;
    }

.field-msg {
    font-size: 11.5px;
    margin-top: 5px;
    display: none;
}

    .field-msg.show {
        display: block;
    }

    .field-msg.err {
        color: #EF4444;
    }

    .field-msg.ok {
        color: #10B981;
    }

/* Strength bar */
.strength-wrap {
    margin-top: 8px;
    display: none;
}

.strength-bar {
    display: flex;
    gap: 4px;
    margin-bottom: 4px;
}

.strength-seg {
    flex: 1;
    height: 4px;
    border-radius: 99px;
    background: #E5E7EB;
    transition: background 0.3s;
}

.strength-label {
    font-size: 11.5px;
    color: #9CA3AF;
    margin-bottom: 6px;
}

/* Requirements checklist */
.req-list {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px 12px;
    margin-top: 6px;
    padding: 0;
}

.req-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    color: #9CA3AF;
    transition: color 0.2s;
}

    .req-item.met {
        color: #10B981;
    }

.req-icon {
    font-size: 13px;
}