/* PCB Portal Login & Forgot Password */

.pcb-login-page {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    background: #eef3f9;
    font-family: 'Muli', sans-serif, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.pcb-login-page #main.pcb-auth-shell {
    flex: 1 0 auto;
    padding: 0 !important;
    display: flex;
    flex-direction: column;
    width: 100%;
    padding-top: 72px !important;
}

.pcb-login-page #main > .row {
    flex: 1;
    margin-bottom: 0;
}

.pcb-login-page #main > .row > .col.s12 {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 0 !important;
}

.pcb-login-page .content-wrapper-before {
    display: none !important;
}

/* ----- Auth page shell ----- */
.pcb-auth-page {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 72px - 56px);
    min-height: calc(100dvh - 72px - 56px);
    background:
        radial-gradient(ellipse 80% 50% at 50% -10%, rgba(0, 74, 173, 0.14) 0%, transparent 55%),
        linear-gradient(180deg, #f0f5fc 0%, #eef3f9 100%);
}

.pcb-login-page .pcb-landing-btn-login--active {
    background: #004aad !important;
    color: #fff !important;
    border-color: #004aad !important;
}

.pcb-auth-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px 48px;
    width: 100%;
}

.pcb-login-card,
.pcb-auth-card {
    width: 100%;
    max-width: 480px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.1);
    border: 1px solid #e8edf3;
    padding: 36px 32px 28px;
}

.pcb-login-card__head {
    text-align: center;
    margin-bottom: 28px;
}

.pcb-login-card__head img {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    margin-bottom: 12px;
}

.pcb-login-card__head h2 {
    font-size: 1.35rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 6px;
    text-transform: none;
    letter-spacing: 0;
}

.pcb-login-card__head p {
    font-size: 0.875rem;
    color: #64748b;
    margin: 0;
    line-height: 1.5;
}

.pcb-login-field {
    position: relative;
    margin-bottom: 16px;
}

.pcb-login-field input {
    width: 100%;
    height: 48px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    padding: 0 14px;
    font-size: 0.95rem;
    color: #0f172a;
    background: #f8fafc;
    box-sizing: border-box;
    margin: 0 !important;
}

.pcb-login-field--password input {
    padding-right: 44px;
}

.pcb-login-field input::placeholder {
    color: #94a3b8;
}

.pcb-login-field input:focus {
    outline: none;
    border-color: #004aad;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(0, 74, 173, 0.12);
}

.pcb-login-field__toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    cursor: pointer;
    font-size: 20px;
    user-select: none;
    z-index: 1;
}

.pcb-login-field__toggle:hover {
    color: #004aad;
}

.pcb-login-remember {
    margin: 2px 0 16px;
}

.pcb-login-remember label span {
    color: #475569;
    font-size: 0.875rem;
}

.pcb-login-turnstile {
    display: flex;
    justify-content: center;
    margin-bottom: 18px;
    overflow: hidden;
}

.pcb-login-submit {
    width: 100%;
    height: 48px;
    border: none;
    border-radius: 10px;
    background: #004aad !important;
    color: #fff !important;
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0.02em;
    box-shadow: 0 4px 14px rgba(0, 74, 173, 0.3);
    cursor: pointer;
    margin: 0 0 12px;
}

.pcb-login-submit:hover {
    background: #003d8f !important;
}

.pcb-login-submit--secondary {
    background: #64748b !important;
    box-shadow: none !important;
}

.pcb-login-submit--secondary:hover {
    background: #475569 !important;
}

.pcb-login-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #f1f5f9;
}

.pcb-login-links--center {
    justify-content: center;
}

.pcb-login-links a {
    font-size: 0.875rem;
    font-weight: 500;
    color: #004aad;
    text-decoration: none;
}

.pcb-login-links a:hover {
    text-decoration: underline;
}

.pcb-login-message {
    width: 100%;
    max-width: 480px;
    margin: 0 auto 16px;
    background: #fff;
    border-radius: 10px;
    border: 1px solid #e8edf3;
    padding: 12px 40px 12px 16px;
    position: relative;
    font-size: 0.9rem;
    text-align: center;
}

.pcb-login-message--success { color: #059669; }
.pcb-login-message--error { color: #dc2626; }

.pcb-login-message .crop {
    position: absolute;
    right: 8px;
    top: 8px;
    cursor: pointer;
    color: #94a3b8;
}

.pcb-login-maint {
    text-align: center;
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    max-width: 480px;
    color: #dc2626;
    font-size: 1rem;
    line-height: 1.6;
    border: 1px solid #fecaca;
}

/* Forgot password */
.pcb-forgot-card {
    max-width: 480px;
}

.pcb-forgot-message {
    margin-bottom: 16px;
    font-size: 0.9rem;
    text-align: center;
}

.pcb-forgot-message p {
    margin: 0;
    padding: 10px 12px;
    border-radius: 8px;
}

.pcb-forgot-message--info {
    color: #0369a1;
    background: #e0f2fe;
}

.pcb-forgot-message--success {
    color: #059669;
    background: #ecfdf5;
}

.pcb-forgot-message--error {
    color: #dc2626;
    background: #fef2f2;
}

.pcb-forgot-hint {
    margin: -8px 0 14px;
    font-size: 0.8rem;
    color: #64748b;
    line-height: 1.4;
}

.pcb-login-page footer.pcb-login-footer {
    flex: 0 0 auto;
    background: #0c1e3d !important;
    padding: 14px 0;
    margin-top: auto;
    box-shadow: none;
    position: static !important;
    width: 100%;
}

.pcb-login-footer .container {
    max-width: 1400px !important;
    width: 94% !important;
    margin: 0 auto !important;
    padding: 0 24px !important;
}

.pcb-login-footer__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    color: rgba(255,255,255,0.85);
    font-size: 13px;
}

.pcb-login-footer__logos {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.pcb-login-footer__logos img {
    height: 36px;
    background: #fff;
    padding: 2px;
    border-radius: 4px;
}

.pcb-login-footer a {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
}

.pcb-login-footer a:hover {
    text-decoration: underline;
}

@media only screen and (max-width: 600px) {
    .pcb-login-card {
        padding: 24px 20px 20px;
    }

    .pcb-login-footer__inner {
        flex-direction: column;
        text-align: center;
    }

    .pcb-login-card,
    .pcb-auth-card {
        padding: 24px 20px 20px;
    }
}
