/* PDQ Restoration — Login (split layout matching brand mockup) */

:root {
    --pdq-green: #4c9132;
    --pdq-green-hover: #3d7828;
    --pdq-blue: #2563eb;
    --pdq-dark-text: #0f172a;
    --pdq-muted: #64748b;
    --pdq-input-border: #d0d5dd;
    --pdq-panel: #f5f6f8;
}

* {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
    background-color: #ffffff;
    font-family: "Plus Jakarta Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--pdq-dark-text);
    overflow-x: hidden;
}

.login-fullscreen-wrapper {
    display: flex;
    width: 100%;
    min-height: 100vh;
    padding: 1.25rem 1.25rem 1.25rem 0.5rem;
    background-color: #ffffff;
    gap: 0.75rem;
}

.form-container,
.showcase-card {
    flex: 1 1 0;
    width: 50%;
    min-width: 0;
}

.form-container {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: stretch;
    padding: 1.75rem 3.5rem 1.5rem 4rem;
}

.brand-logo-img {
    height: 52px;
    width: auto;
    object-fit: contain;
}

.form-content-center {
    margin: auto;
    padding: 1.5rem 0;
    width: 100%;
    max-width: 420px;
    align-self: center;
}

.login-title {
    font-size: 2.15rem;
    font-weight: 700;
    color: #0b1b33;
    letter-spacing: -0.03em;
    margin: 0 0 0.35rem;
    line-height: 1.15;
}

.login-subtitle {
    font-size: 0.95rem;
    color: var(--pdq-muted);
    margin: 0 0 2rem;
    font-weight: 400;
}

.custom-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #344054;
    margin-bottom: 0.4rem;
    display: block;
}

.input-wrapper {
    position: relative;
    display: block;
    width: 100%;
}

.input-wrapper input[type="password"]::-ms-reveal,
.input-wrapper input[type="password"]::-ms-clear {
    display: none;
}

.input-wrapper:has(.password-toggle-btn) .custom-input {
    padding-right: 2.75rem !important;
}

.input-icon {
    position: absolute;
    left: 0.95rem;
    top: 50%;
    transform: translateY(-50%);
    color: #98a2b3;
    font-size: 1.05rem;
    line-height: 1;
    pointer-events: none;
    z-index: 2;
}

.custom-input {
    display: block;
    width: 100%;
    height: 48px;
    background: #ffffff !important;
    border: 1px solid var(--pdq-input-border) !important;
    border-radius: 10px !important;
    padding: 0 1rem 0 2.7rem !important;
    color: #0f172a !important;
    font-size: 0.925rem;
    line-height: normal;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

#input-password.custom-input {
    padding-right: 2.75rem !important;
}

.custom-input::placeholder {
    color: #98a2b3 !important;
    font-weight: 400;
}

.custom-input:focus {
    border-color: #84caff !important;
    box-shadow: 0 0 0 3px rgba(46, 144, 250, 0.18) !important;
    outline: none;
}

.password-toggle-btn {
    position: absolute;
    right: 0.65rem;
    top: 50%;
    transform: translateY(-50%);
    width: 2rem;
    height: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: #98a2b3;
    cursor: pointer;
    padding: 0;
    font-size: 1.1rem;
    line-height: 1;
    z-index: 2;
}

.password-toggle-btn:hover {
    color: #475569;
}

.remember-row {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-top: 0.7rem;
    margin-bottom: 1.5rem;
}

.custom-check-input {
    width: 1rem;
    height: 1rem;
    border-radius: 4px;
    border: 1px solid #d0d5dd;
    cursor: pointer;
}

.custom-check-input:checked {
    background-color: var(--pdq-green);
    border-color: var(--pdq-green);
}

.custom-check-label {
    font-size: 0.875rem;
    color: #667085;
    cursor: pointer;
    user-select: none;
    margin-left: 0.4rem;
}

.btn-pdq-login {
    width: 100%;
    height: 50px;
    background-color: var(--pdq-green);
    border: none;
    color: #ffffff;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: background-color 0.15s ease, transform 0.1s ease;
}

.btn-pdq-login:hover:not(:disabled) {
    background-color: var(--pdq-green-hover);
    color: #ffffff;
}

.btn-pdq-login:active:not(:disabled) {
    transform: translateY(1px);
}

.btn-pdq-login:disabled {
    opacity: 0.75;
    cursor: wait;
}

.forgot-pass-wrap {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.875rem;
    color: #667085;
}

.forgot-pass-link {
    color: var(--pdq-blue);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.auth-otp {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    width: 100%;
}

.auth-otp-digit {
    flex: 1 1 0;
    min-width: 0;
    width: 100%;
    max-width: 3.25rem;
    height: 52px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0;
    color: #0f172a;
    background: #ffffff;
    border: 1px solid var(--pdq-input-border);
    border-radius: 10px;
    caret-color: var(--pdq-green);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.auth-otp-digit:focus {
    border-color: #84caff;
    box-shadow: 0 0 0 3px rgba(46, 144, 250, 0.18);
    outline: none;
}

.auth-otp-digit.is-invalid {
    border-color: #f87171;
}

.forgot-pass-link:hover {
    color: #1d4ed8;
}

.auth-alert {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.7rem 0.85rem;
    border-radius: 10px;
    font-size: 0.85rem;
    line-height: 1.45;
    margin-bottom: 1rem;
}

.auth-alert i {
    margin-top: 0.1rem;
    flex-shrink: 0;
}

.auth-alert-danger {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.25);
    color: #dc2626;
}

.auth-alert-success {
    background: rgba(22, 163, 74, 0.1);
    border: 1px solid rgba(22, 163, 74, 0.25);
    color: #15803d;
}

.pdq-password-rules {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.45rem;
    width: 100%;
}

.pdq-password-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.1rem 0.45rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 1.35;
    border: 1px solid transparent;
    user-select: none;
}

.pdq-password-chip.is-unmet {
    color: #64748b;
    background: #f1f5f9;
    border-color: #e2e8f0;
}

.pdq-password-chip.is-met {
    color: #166534;
    background: #dcfce7;
    border-color: #bbf7d0;
}

.form-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 1rem;
    font-size: 0.8rem;
    color: #98a2b3;
}

.privacy-link {
    color: #667085;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.privacy-link:hover {
    color: #344054;
}

/* Right showcase panel */
.showcase-card {
    background-color: var(--pdq-panel);
    border-radius: 24px;
    padding: 2rem 1.5rem 2.25rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: calc(100vh - 2.5rem);
}

.showcase-help-text {
    font-size: 0.875rem;
    color: #475467;
    z-index: 5;
    position: relative;
}

.showcase-help-text a {
    color: #0b1b33;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.watermark-vector-img {
    position: absolute;
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    width: min(90%, 482px);
    height: auto;
    pointer-events: none;
    z-index: 1;
    user-select: none;
    opacity: 0.15;
    /* Transparent PNG — no blend-mode needed */
}

.showcase-canvas {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 640px;
    height: min(52vh, 460px);
    margin: 1rem auto;
}

/* Knock out solid black photo backgrounds on the light panel */
.img-knockout {
    mix-blend-mode: screen;
}

.img-house {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 88%;
    max-width: 520px;
    height: auto;
    z-index: 3;
    filter: drop-shadow(0 10px 20px rgba(15, 23, 42, 0.08));
}

.img-tree {
    position: absolute;
    right: -8%;
    top: -6%;
    height: 108%;
    width: auto;
    max-width: 42%;
    object-fit: contain;
    object-position: right center;
    z-index: 2;
    pointer-events: none;
}

.img-equip {
    position: absolute;
    z-index: 4;
    height: auto;
    filter: drop-shadow(0 8px 16px rgba(15, 23, 42, 0.16));
    will-change: transform;
}

.img-equip-dehum {
    left: 2%;
    bottom: 28%;
    width: 17%;
    max-width: 110px;
    animation: pdq-float-a 4.2s ease-in-out infinite;
}

.img-equip-scrubber {
    left: 18%;
    top: 8%;
    width: 18%;
    max-width: 118px;
    animation: pdq-float-b 4.8s ease-in-out 0.35s infinite;
}

.img-equip-velo {
    right: 28%;
    top: 8%;
    width: 19%;
    max-width: 124px;
    animation: pdq-float-a 5s ease-in-out 0.7s infinite;
}

.img-equip-extractor {
    right: 11%;
    top: 22%;
    width: 15%;
    max-width: 96px;
    animation: pdq-float-c 4.4s ease-in-out 0.2s infinite;
}

.img-equip-boss {
    right: 1%;
    bottom: 26%;
    width: 16%;
    max-width: 104px;
    animation: pdq-float-b 5.1s ease-in-out 0.55s infinite;
}

@keyframes pdq-float-a {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes pdq-float-b {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-12px) rotate(1.5deg); }
}

@keyframes pdq-float-c {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.showcase-bottom-wrap {
    z-index: 5;
    position: relative;
    max-width: 508px;
    padding: 0 0.5rem;
}

.guarantee-title {
    font-size: 1.45rem;
    font-weight: 700;
    color: #0b1b33;
    letter-spacing: -0.02em;
    margin: 0 0 0.45rem;
}

.guarantee-desc {
    font-size: 0.9rem;
    color: #667085;
    line-height: 1.55;
    margin: 0;
}

@media (max-width: 1100px) {
    .form-container {
        padding: 1.5rem 2rem;
    }
}

@media (max-width: 992px) {
    .login-fullscreen-wrapper {
        flex-direction: column-reverse;
        padding: 0.75rem;
    }

    .form-container,
    .showcase-card {
        flex: 1 1 auto;
        width: 100%;
    }

    .form-container {
        padding: 1.25rem 1rem 1rem;
    }

    .form-content-center {
        max-width: 100%;
    }

    .showcase-card {
        width: 100%;
        min-height: auto;
        padding: 1.5rem 1rem 1.75rem;
        border-radius: 18px;
    }

    .showcase-canvas {
        height: 300px;
        max-width: 100%;
    }

    .img-house {
        max-width: 300px;
        width: 78%;
    }

    .login-title {
        font-size: 1.75rem;
    }
}

@media (max-width: 576px) {
    .device_logo {
        display: flex;
        justify-content: center;
    }
    .watermark-vector-img {
        top:15%;
    }
    .showcase-canvas {
        height: 240px;
    }

    .auth-otp {
        gap: 0.35rem;
    }

    .auth-otp-digit {
        height: 46px;
        font-size: 1.1rem;
        max-width: none;
    }

    .img-equip-scrubber,
    .img-equip-velo,
    .img-equip-extractor {
        display: none;
    }

    .guarantee-title {
        font-size: 1.2rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .img-equip {
        animation: none !important;
    }
}
