/* =====================================================
   Inspire Planner — Default login page redesign
   Loaded ONLY by views/layout.ejs (default login).
   Does NOT affect Abbott or AllianceHCM login pages.
   ===================================================== */

/* ===== Full-viewport login shell ===== */

.ip-login-body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

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

/* ===== LEFT: Brand panel ===== */

.ip-brand-panel {
    flex: 1.1;
    background: #fff;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 72px;
    border-right: 1px solid #f0e8ec;
    overflow: hidden;
}

.ip-brand-panel::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -10%;
    transform: translateY(-50%);
    width: 85%;
    height: 85%;
    background-image: url('/img/Logo_Icon_Primary01.png');
    background-repeat: no-repeat;
    background-position: center right;
    background-size: contain;
    opacity: 0.03;
    pointer-events: none;
}

.ip-brand-content {
    position: relative;
    z-index: 1;
}

/* ===== Brand lockup (icon + wordmark) ===== */

.ip-brand-lockup {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 44px;
}

.ip-brand-icon {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
}

.ip-brand-name {
    font-size: 26px;
    font-weight: 500;
    color: #1e293b;
    letter-spacing: 0.01em;
    display: block;
    line-height: 1.2;
}

.ip-brand-label {
    font-size: 12px;
    color: #94a3b8;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    display: block;
}

/* ===== Legacy logo (unused, kept for safety) ===== */

.ip-brand-logo {
    height: 80px;
    margin-bottom: 56px;
    display: block;
}

/* ===== Headline ===== */

.ip-brand-title {
    font-size: 40px;
    font-weight: 500;
    color: #1e293b;
    line-height: 1.15;
    margin: 0;
    max-width: 420px;
    font-family: 'Prompt', Arial, sans-serif;
    letter-spacing: -0.025em;
}

.ip-accent-bar {
    width: 48px;
    height: 3px;
    background: #f00566;
    border-radius: 2px;
    margin: 28px 0 28px;
}

.ip-brand-subtitle {
    font-size: 15px;
    color: #64748b;
    line-height: 1.7;
    margin: 0;
    max-width: 360px;
}

/* ===== RIGHT: Form panel ===== */

.ip-form-panel {
    flex: 0.85;
    background: #faf8f9;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 48px 36px;
    border-left: 1px solid #f0e8ec;
}

/* ===== Form card ===== */

.ip-form-card {
    background: #fff;
    border: 1px solid #ede6ea;
    border-radius: 20px;
    box-shadow: 0 16px 56px rgba(120, 20, 60, 0.08);
    padding: 44px 36px;
    width: 100%;
    max-width: 400px;
}

/* ===== Card header ===== */

.ip-form-header {
    text-align: center;
    margin-bottom: 28px;
}

.ip-lock-badge {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: #fff0f5;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.ip-lock-badge svg {
    width: 24px;
    height: 24px;
}

.ip-form-title {
    font-size: 22px;
    font-weight: 500;
    color: #1e293b;
    margin: 0 0 4px;
    font-family: 'Prompt', Arial, sans-serif;
    letter-spacing: -0.01em;
}

.ip-form-desc {
    font-size: 13px;
    color: #94a3b8;
    margin: 0;
}

/* ===== Form ===== */

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

.ip-field-group {
    margin-bottom: 18px;
}

.ip-field-group:nth-child(2) {
    margin-bottom: 14px;
}

.ip-label,
.ip-label-row .ip-label {
    display: block;
    font-size: 11px;
    font-weight: 500;
    color: #64748b;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.ip-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.ip-forgot-link {
    font-size: 12px;
    font-weight: 600;
    color: #f00566;
    text-decoration: none;
}

.ip-forgot-link:hover {
    text-decoration: underline;
}

/* ===== Input wrapper ===== */

.ip-input-wrapper {
    display: flex;
    align-items: center;
    position: relative;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    height: 48px;
    padding: 0 16px;
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ip-input-wrapper svg {
    width: 16px;
    height: 16px;
    min-width: 16px;
    flex-shrink: 0;
}

.ip-input-wrapper svg:first-child {
    margin-right: 12px;
    stroke: #c0c7d0;
}

.ip-input-wrapper:focus-within {
    border-color: #f00566;
    box-shadow: 0 0 0 3px rgba(240, 5, 102, 0.08);
}

.ip-input-wrapper .check-image {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
}

.ip-input {
    border: none;
    background: transparent;
    flex: 1;
    font-size: 14px;
    color: #1e293b;
    outline: none;
    font-family: Arial, sans-serif;
    min-width: 0;
}

.ip-input::placeholder {
    color: #b0b8c4;
}

.ip-eye-icon {
    height: 14px;
    margin-left: auto;
    flex-shrink: 0;
    cursor: pointer;
}

/* ===== Checkbox ===== */

.ip-remember-row {
    margin-bottom: 28px;
}

.ip-checkbox-wrapper {
    display: flex;
    align-items: center;
    cursor: pointer;
    gap: 8px;
}

.ip-checkbox-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.ip-checkbox-visual {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    border: 1.5px solid #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.15s;
}

.ip-checkbox-input:checked + .ip-checkbox-visual {
    background: #f00566;
    border-color: #f00566;
}

.ip-checkbox-input:checked + .ip-checkbox-visual::after {
    content: '';
    width: 8px;
    height: 5px;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(-45deg) translateY(-1px);
}

.ip-checkbox-label {
    font-size: 13px;
    color: #64748b;
}

/* ===== Submit button ===== */

.ip-submit-btn {
    width: 100%;
    height: 50px;
    background: #f00566;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    letter-spacing: 0.03em;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
    font-family: 'Prompt', Arial, sans-serif;
}

.ip-submit-btn:hover {
    background: #d00050;
}

.ip-submit-btn:active {
    transform: scale(0.985);
}

/* ===== Form footer ===== */

.ip-form-footer {
    text-align: center;
    border-top: 1px solid #f0e8ec;
    padding-top: 20px;
    margin-top: 28px;
    font-size: 11px;
    color: #b0b8c4;
    letter-spacing: 0.02em;
}

/* ===== Error message ===== */

.ip-error {
    font-size: 13px;
    text-align: center;
    color: #991b1b;
    width: 100%;
    max-width: 400px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 16px;
}

#errormessage:empty,
.ip-error:empty {
    display: none;
}

/* ===== Responsive ===== */

@media (max-width: 768px) {
    .ip-brand-panel {
        display: none;
    }

    .ip-login-container {
        min-height: 100vh;
    }

    .ip-form-panel {
        flex: 1;
        padding: 40px 24px;
    }

    .ip-form-card {
        padding: 36px 24px;
    }
}