/* ============================================================
   login.css  –  mirrors profile.css / timesheet.css design language
   ============================================================ */

/* ── Page shell ── */
.lg-page {
    min-height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 16px 64px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #1a1a2e;
}

/* ── Card ── */
.lg-card {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e8eaf0;
    box-shadow: 0 4px 24px rgba(0,0,0,.09);
    width: 100%;
    max-width: 420px;
    overflow: hidden;
}

/* ── Header (dark gradient – matches pf-header) ── */
.lg-header {
    background: linear-gradient(135deg, #002647 0%, #003c62 100%);
    padding: 32px 32px 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}

.lg-logo-wrap {
    width: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lg-logo-wrap img {
    width: 100%;
    height: auto;
    object-fit: contain;
    mix-blend-mode: screen;
    opacity: 0.92;
}

.lg-header-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.2px;
    text-align: center;
    margin: 0;
}

/* ── Form body ── */
.lg-body {
    padding: 28px 32px 32px;
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* ── Alert banners ── */
.lg-alert {
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 20px;
    line-height: 1.5;
}

.lg-alert-warning {
    background: rgba(248,183,57,0.12);
    border: 1px solid rgba(248,183,57,0.4);
    color: #92660a;
}

.lg-alert-danger {
    background: rgba(220,53,69,0.08);
    border: 1px solid rgba(220,53,69,0.25);
    color: #b91c1c;
}

/* ── Field groups ── */
.lg-field {
    margin-bottom: 16px;
}

.lg-field label {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    color: #9ca3af;
    margin-bottom: 6px;
}

/* ── Input wrapper with icon ── */
.lg-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.lg-input-icon {
    position: absolute;
    left: 13px;
    color: #9ca3af;
    font-size: 0.85rem;
    pointer-events: none;
    z-index: 1;
}

.lg-input-wrap input {
    width: 100%;
    padding: 11px 14px 11px 38px;
    border: 1px solid #e2e6f0;
    border-radius: 10px;
    font-size: 0.92rem;
    color: #1a1a2e;
    background: #f9fafb;
    transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
    outline: none;
    box-sizing: border-box;
}

.lg-input-wrap input:focus {
    border-color: #f8b739;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(248,183,57,0.15);
}

.lg-input-wrap input::placeholder {
    color: #c4c9d8;
}

/* ── Select (dropdown) ── */
.lg-select {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid #e2e6f0;
    border-radius: 10px;
    font-size: 0.92rem;
    color: #1a1a2e;
    background: #f9fafb;
    transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
    outline: none;
    box-sizing: border-box;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239ca3af' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

.lg-select:focus {
    border-color: #f8b739;
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(248,183,57,0.15);
}

/* ── Validation messages ── */
.lg-validation {
    font-size: 0.78rem;
    color: #b91c1c;
    margin-top: 5px;
    display: block;
}

/* ── Submit button ── */
.lg-submit-wrap {
    margin-top: 8px;
}

.lg-btn {
    display: block;
    width: 100%;
    padding: 13px;
    background: #f8b739;
    color: #1a1a2e;
    border: none;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.2px;
    cursor: pointer;
    transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
}

.lg-btn:hover {
    background: #d9992a;
    box-shadow: 0 4px 14px rgba(248,183,57,0.35);
}

.lg-btn:active {
    transform: translateY(1px);
}

/* ── Footer link ── */
.lg-footer {
    text-align: center;
    padding: 0 32px 28px;
}

.lg-footer a {
    font-size: 0.82rem;
    color: #7b84a3;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.15s;
}

.lg-footer a:hover {
    color: #1a1a2e;
}

/* ── Responsive ── */
@media (max-width: 480px) {
    .lg-page {
        padding: 16px 12px 48px;
        align-items: flex-start;
        padding-top: 24px;
    }

    .lg-card {
        border-radius: 12px;
        max-width: 100%;
    }

    .lg-header {
        padding: 24px 20px 20px;
    }

    .lg-logo-wrap {
        width: 96px;
    }

    .lg-header-title {
        font-size: 1.15rem;
    }

    .lg-body {
        padding: 20px 20px 24px;
    }

    .lg-footer {
        padding: 0 20px 22px;
    }
}
