/* ============================================
   NEW MODERN CARD DESIGN — JKU Login Page
   ============================================ */

/* ── Page Wrapper ── */
.lp-section {
    background: #f4f7fa;
    min-height: calc(100vh - 540px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    width: 100%;
}

/* ── Highly Prominent White Card ── */
.lp-card {
    box-sizing: border-box;
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 18px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.09),
        0 4px 16px rgba(15, 23, 42, 0.04);
    padding: 16px 24px 22px;
    width: 100%;
    max-width: 400px;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.lp-card * {
    box-sizing: border-box;
}

/* Saffron top border gradient */
.lp-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3.5px;
    background: linear-gradient(90deg, #c53a1a, #ea580c, #f59e0b);
    border-radius: 18px 18px 0 0;
}

/* ── Logo ── */
.lp-logo-wrap {
    display: flex;
    justify-content: center;
    margin-top: 10px;
    margin-bottom: 18px;
}

.lp-logo-wrap svg {
    display: block;
    width: 72px;
    height: auto;
    max-width: 100%;
}

/* ── Title & Decorative Subtitle Separator ── */
.lp-hd-wrap {
    text-align: center;
    margin-bottom: 12px;
}

.lp-hd-wrap h1 {
    font-size: 21px;
    font-weight: 800;
    color: #0c2f60;
    margin: 0 0 4px;
    letter-spacing: -0.3px;
    font-family: inherit;
    transition: opacity 0.2s ease;
}

.lp-separator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 6px;
    padding: 0 12px;
}

.lp-sep-line {
    height: 1.5px;
    flex: 0 0 40px;
    max-width: 40px;
}

.lp-sep-line-left {
    background: linear-gradient(90deg, transparent, #b84110);
}

.lp-sep-line-right {
    background: linear-gradient(90deg, #b84110, transparent);
}

.lp-hd-wrap p {
    font-size: 12.5px;
    color: #64748b;
    margin: 0;
    transition: opacity 0.2s ease;
}

/* ── Adapt-Height Sliding Form Viewport ── */
.lp-slider-viewport {
    width: 100%;
    position: relative;
    margin-bottom: 4px;
}

.lp-slider-track {
    width: 100%;
}

.lp-slide {
    display: none;
    width: 100%;
    box-sizing: border-box;
    padding: 0 2px;
}

/* Active slide display with smooth fade in */
.lp-slide.active-slide {
    display: block !important;
    animation: lpSlideFadeIn 0.28s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

/* ── Collapsible Elements for Sliding ── */
.lp-fade-element {
    transition: opacity 0.3s ease, max-height 0.3s ease, margin 0.3s ease, padding 0.3s ease;
    max-height: 80px;
    opacity: 1;
    overflow: hidden;
}

.lp-fade-element.hidden {
    opacity: 0 !important;
    max-height: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    pointer-events: none;
    border: none !important;
}

/* ── Pill Tabs ── */
.lp-tabs-container {
    display: flex;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 12px;
}

.lp-tab {
    flex: 1;
    text-align: center;
    padding-bottom: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
    transition: color 0.2s ease;
    font-family: inherit;
}

.lp-tab.active {
    color: #c94b2a;
}

.lp-tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2.5px;
    background: #c94b2a;
    border-radius: 2px 2px 0 0;
}

/* ── Tab Panes ── */
.lp-pane {
    display: none;
}

.lp-pane.active {
    display: block;
}

/* ── Alert Error ── */
.lp-alert {
    background: #fef2f2;
    border-left: 3.5px solid #ef4444;
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 20px;
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.lp-alert i {
    color: #ef4444;
    font-size: 15px;
    margin-top: 2px;
}

.lp-alert ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.lp-alert li {
    font-size: 12.5px;
    color: #dc2626;
    font-weight: 600;
    line-height: 1.4;
}

/* ── Input Fields ── */
.lp-field {
    margin-bottom: 8px;
}

.lp-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.lp-input-icon {
    position: absolute;
    left: 12px;
    color: #c53a1a;
    pointer-events: none;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lp-input {
    width: 100%;
    padding: 8px 38px 8px 34px;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    font-size: 13px;
    font-family: inherit;
    color: #0f172a;
    background: #ffffff;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.lp-input:focus {
    border-color: #c94b2a;
    box-shadow: 0 0 0 3px rgba(201, 75, 42, 0.08);
}

.lp-input::placeholder {
    color: #cbd5e1;
}

/* Password eye button */
.lp-eye {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #94a3b8;
    padding: 6px;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
    z-index: 5;
    outline: none;
}

.lp-eye:hover {
    color: #c94b2a;
}

/* Phone prefix */
.lp-prefix {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    padding: 0 12px;
    border-right: 1.5px solid #cbd5e1;
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    gap: 6px;
    pointer-events: none;
    z-index: 2;
}

.lp-phone {
    padding-left: 72px !important;
}

/* ── Options Row (Remember me + Forgot Password) ── */
.lp-options-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.lp-remember {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    color: #64748b;
    cursor: pointer;
    user-select: none;
}

.lp-remember input[type="checkbox"] {
    width: 14px;
    height: 14px;
    accent-color: #c94b2a;
    cursor: pointer;
}

.lp-forgot {
    font-size: 12.5px;
    font-weight: 600;
    color: #0c2f60;
    text-decoration: none;
    transition: color 0.2s ease;
}

.lp-forgot:hover {
    color: #c94b2a;
    text-decoration: underline;
}

/* ── Premium Gradient Button ── */
.lp-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 8px 12px;
    background: linear-gradient(135deg, #b84110 0%, #9e360d 100%);
    border: none;
    border-radius: 8px;
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 12px;
    box-shadow: 0 3px 10px rgba(184, 65, 16, 0.25);
}

.lp-btn:hover {
    transform: translateY(-1px);
    background: linear-gradient(135deg, #a33a0e 0%, #8a2e0b 100%);
    box-shadow: 0 6px 18px rgba(184, 65, 16, 0.4);
}

.lp-btn:active {
    transform: translateY(0);
}

/* Back to Email link */
.lp-otp-back {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    text-decoration: none;
    margin-top: 10px;
    transition: color 0.2s ease;
}

.lp-otp-back:hover {
    color: #c94b2a;
}

/* ── OR Divider ── */
.lp-div {
    display: flex;
    align-items: center;
    margin-bottom: 14px;
    position: relative;
}

.lp-div::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 1px;
    background: #e2e8f0;
    z-index: 1;
}

.lp-div-badge {
    margin: 0 auto;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    color: #0c2f60;
    position: relative;
    z-index: 2;
}

/* ── Google Button ── */
.lp-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 8px;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    background: #ffffff;
    color: #0c2f60;
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
    margin-bottom: 12px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.lp-google:hover {
    border-color: #cbd5e1;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.03);
    transform: translateY(-0.5px);
}

/* ── Footer Link ── */
.lp-footer {
    text-align: center;
}

.lp-footer p {
    font-size: 12px;
    color: #64748b;
    margin: 0;
}

.lp-register {
    font-weight: 700;
    color: #c53a1a;
    text-decoration: none;
    transition: color 0.2s ease;
    margin-left: 4px;
}

.lp-register:hover {
    color: #e65100;
    text-decoration: underline;
}

/* ── Centered Trust Row ── */
.lp-trust {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 14px;
    color: #0c2f60;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    width: 100%;
}

.lp-trust i {
    font-size: 14px;
    color: #0c2f60;
}

.lp-trust span {
    color: #cbd5e1;
    margin: 0 4px;
}

@media (max-width: 767.98px) {
    .lp-section {
        padding: 25px 16px;
    }
}

@media (max-width: 480px) {
    .lp-card {
        padding: 24px 20px;
    }

    .lp-section {
        padding: 20px 12px;
    }
}

@keyframes lp-spin {
    to {
        transform: rotate(360deg);
    }
}

/* ── WordPress Style Card Shake Animation ── */
@keyframes lp-shake {

    0%,
    100% {
        transform: translateX(0);
    }

    12.5%,
    37.5%,
    62.5%,
    87.5% {
        transform: translateX(-6px);
    }

    25%,
    50%,
    75% {
        transform: translateX(6px);
    }
}

.lp-card.lp-shake {
    animation: lp-shake 0.4s ease-in-out;
}

/* ── Success Button Morph State ── */
.lp-btn.lp-btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    box-shadow: 0 3px 10px rgba(16, 185, 129, 0.25) !important;
    border-color: transparent !important;
    transform: none !important;
    cursor: default;
}

/* ── Select Dropdown ── */
.lp-select {
    width: 100%;
    padding: 10px 14px 10px 38px;
    border: 1.5px solid #cbd5e0;
    border-radius: 8px;
    font-size: 14px;
    color: #2d3748;
    background: #ffffff url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23718096' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e") no-repeat right 12px center/12px;
    outline: none;
    transition: border-color 0.2s ease;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
}

.lp-select:focus {
    border-color: #b84110;
    box-shadow: 0 0 0 3px rgba(184, 65, 16, 0.08);
}

/* ── Card Wrapper ── */
.lp-card-wrapper {
    width: 100%;
    max-width: 400px;
    position: relative;
    margin: 20px auto;
}

@media (max-width: 767.98px) {
    .lp-card-wrapper {
        margin: 20px 0;
    }
}

/* ── Alert & Status Icons ── */
.lp-alert.hide {
    display: none;
}

#ajaxAlertMsg {
    font-size: 12.5px;
    color: #dc2626;
    font-weight: 600;
    line-height: 1.4;
    margin-left: 8px;
}

.lp-google svg {
    margin-right: 12px;
    flex-shrink: 0;
}

.lp-success-icon {
    margin-right: 6px;
    vertical-align: middle;
    display: inline-block;
    color: #ffffff;
}

.lp-spinner-icon {
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, .35);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: lp-spin .6s linear infinite;
    margin-right: 6px;
    vertical-align: middle;
}

/* ── Google Sign In Button Alignment & Border Fit Fix ── */
#lpGoogleContainer {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: visible;
}

.g_id_signin {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: visible !important;
}

.g_id_signin iframe {
    max-width: 100% !important;
    margin: 0 auto !important;
}