* {
    box-sizing: border-box;
}

html {
    margin: 0;
    min-height: 100%;
}

body.login2-page {
    margin: 0;
    min-height: 100vh;
    padding: clamp(1rem, 3vmin, 2.5rem);
    font-family: "Segoe UI", system-ui, -apple-system, "Work Sans", Arial, sans-serif;
    color: #172b4d;
    background: #e8ecf1;
}

.login2-frame {
    min-height: calc(100vh - 2 * clamp(1rem, 3vmin, 2.5rem));
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    max-width: 1100px;
    margin: 0 auto;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(15, 23, 42, 0.04), 0 12px 28px rgba(15, 23, 42, 0.1), 0 28px 56px rgba(15, 23, 42, 0.08);
}

.login2-form-panel {
    padding: 2.5rem 2.25rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login2-brand {
    margin-bottom: 1.75rem;
    text-align: center;
}

    .login2-brand img {
        display: inline-block;
        height: auto;
        max-height: 8rem;
        width: auto;
        vertical-align: middle;
    }

.login2-title {
    margin: 0 0 0.35rem;
    font-size: 1.5rem;
    font-weight: 600;
    color: #172b4d;
}

.login2-lead {
    margin: 0 0 1.5rem;
    font-size: 0.95rem;
    color: #5e6c84;
}

.login2-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.login2-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.login2-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #5e6c84;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.login2-input-wrap {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid #dfe1e6;
    border-radius: 4px;
    padding: 0 0.65rem;
    background: #fafbfc;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

    .login2-input-wrap:focus-within {
        border-color: #0d6efd;
        box-shadow: 0 0 0 1px #0d6efd;
        background: #fff;
    }

.login2-input-icon {
    flex-shrink: 0;
    color: #97a0af;
    display: flex;
    align-items: center;
}

.login2-input-wrap:focus-within .login2-input-icon {
    color: #0d6efd;
}

.login2-input-wrap input {
    flex: 1;
    min-width: 0;
    border: none;
    background: transparent;
    padding: 0.65rem 0.25rem 0.65rem 0;
    font-size: 1rem;
    color: #172b4d;
}

    .login2-input-wrap input::placeholder {
        color: #97a0af;
    }

    .login2-input-wrap input:focus {
        outline: none;
    }

.login2-actions-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 0.25rem;
}

.login2-forgot {
    font-size: 0.95rem;
    font-weight: 500;
    color: #5e6c84;
    text-decoration: none;
}

    .login2-forgot:hover {
        text-decoration: underline;
        color: #0d6efd;
    }

.login2-submit {
    padding: 0.55rem 1.35rem;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #fff;
    background: #0d6efd;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    box-shadow: 0 1px 0 rgba(9, 30, 66, 0.15);
}

    .login2-submit:hover {
        background: #0a58ca;
    }

.login2-checkbox-row {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    color: #5e6c84;
    cursor: pointer;
    user-select: none;
    margin-top: 0.15rem;
}

    .login2-checkbox-row input[type="checkbox"] {
        width: 1rem;
        height: 1rem;
        accent-color: #0d6efd;
    }
/* Hero panel — layered gradients (no image file required); swap for photo if desired */
.login2-hero {
    position: relative;
    min-height: 100%;
    background: linear-gradient(180deg, rgba(8, 28, 52, 0.25) 0%, rgba(8, 28, 52, 0.65) 100%), linear-gradient(165deg, #5eb0ff 0%, #3d7ccc 38%, #1e4d7a 38%, #0d2847 72%, #061525 100%);
    display: flex;
    align-items: flex-end;
    padding: 2.5rem 2rem;
}

.login2-hero-overlay {
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 200'%3E%3Cpath fill='rgba(255,255,255,0.04)' d='M0 200 L80 120 L160 160 L240 90 L320 130 L400 80 L400 200 Z'/%3E%3C/svg%3E") no-repeat bottom center;
    background-size: cover;
    pointer-events: none;
}

.login2-hero-content {
    position: relative;
    z-index: 1;
    max-width: 22rem;
}

.login2-hero-heading {
    margin: 0 0 0.5rem;
    font-size: clamp(1.5rem, 3vw, 1.85rem);
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

.login2-hero-text {
    margin: 0 0 1.5rem;
    font-size: 0.95rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.88);
}

.login2-hero-dots {
    display: flex;
    gap: 0.4rem;
    align-items: center;
}

    .login2-hero-dots span {
        width: 1.5rem;
        height: 3px;
        border-radius: 2px;
        background: rgba(255, 255, 255, 0.35);
    }

        .login2-hero-dots span.is-active {
            background: #fff;
            box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.4);
        }

@media (max-width: 768px) {
    .login2-frame {
        grid-template-columns: 1fr;
        max-width: none;
        min-height: calc(100vh - 2 * clamp(1rem, 3vmin, 2.5rem));
        box-shadow: 0 2px 4px rgba(15, 23, 42, 0.05), 0 10px 24px rgba(15, 23, 42, 0.1);
    }

    .login2-hero {
        min-height: 220px;
        align-items: center;
        text-align: center;
        padding: 2rem 1.5rem;
    }

    .login2-hero-content {
        max-width: none;
    }

    .login2-hero-dots {
        justify-content: center;
    }

    .login2-form-panel {
        padding: 2rem 1.25rem 2.5rem;
    }
}
