body {
    background: linear-gradient(135deg, #1b6e9d, #16b1df);
    min-height: 100vh;
    margin: 0;
    font-family: 'Roboto', sans-serif;
}

.mypanel {
    background-color: transparent !important;
    border: none !important;
}

.password-panel {
    background: #ffffff;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 10px 35px rgba(23, 43, 77, 0.15);
}

.password-intro {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 1rem;
    color: #304562;
}

.password-intro-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #e8f4ff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #16B1DF;
    font-size: 20px;
}

.password-input-label {
    font-weight: 600;
    display: block;
    color: #304562;
}

.password-hint {
    display: block;
    font-size: 12px;
    color: #7a869a;
    margin-bottom: 0.4rem;
}

.password-guidelines {
    background: #f8fafc;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin-top: 0.5rem;
    border: 1px solid #e4ebf5;
}

.password-guidelines ul {
    margin: 0;
    padding-left: 1.2rem;
    color: #4f5d75;
    font-size: 12px;
}

.password-guidelines li {
    margin: 0.2rem 0;
}

html,
body {
    min-height: 100%;
    height: 100%;
}

.login-body {
    min-height: 100vh;
    margin: 0;
    background: linear-gradient(135deg, #1b6e9d, #16b1df);
    position: relative;
    overflow: hidden;
}

/* Allow particles canvas to receive mouse events by making shell transparent to pointer events */
.login-shell {
    position: relative;
    z-index: 3;
    pointer-events: none;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.login-card,
.login-card * {
    pointer-events: auto;
}

/* PrimeFaces inputs/buttons are sometimes wrapped; ensure they stay clickable */
.login-card .ui-inputfield,
.login-card .ui-button,
.login-card input,
.login-card button,
.login-card a {
    pointer-events: auto;
}

.login-card {
    max-width: 980px;
    width: 100%;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0, 0, 0, .18);
    border: 1px solid rgba(255, 255, 255, .12);
    background: rgba(255, 255, 255, .92);
    backdrop-filter: saturate(140%) blur(6px);
    position: relative;
    z-index: 4;
}

/* PrimeFaces overlays can cover the page and swallow hover events */
.ui-widget-overlay,
.ui-dialog-mask,
.ui-blockui {
    pointer-events: none !important;
}

.login-card .ui-panel-content {
    padding: 0 !important;
}

.login-grid {
    display: flex;
    min-height: 520px;
}

.login-brand {
    flex: 1;
    min-width: 320px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 14px;
    padding: 42px 40px;
    background: linear-gradient(135deg, rgba(27, 110, 157, .98), rgba(22, 177, 223, .92));
    color: #fff;
}

.login-brand .brand-title {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: .2px;
    margin: 0;
}

.login-brand .brand-sub {
    font-size: 13px;
    opacity: .92;
    line-height: 1.45;
    margin: 0;
}

.login-brand .brand-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.login-brand .badge {
    font-size: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .18);
    border: 1px solid rgba(255, 255, 255, .22);
}

.login-form {
    flex: 1;
    min-width: 320px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 42px 40px;
    background: rgba(255, 255, 255, .92);
}

.login-form h1 {
    font-size: 20px;
    font-weight: 700;
    color: #1f2d3d;
    margin: 0 0 6px 0;
}

.login-title {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #1f2d3d;
}

.login-title-icon {
    font-size: 22px;
    color: #16B1DF;
}

.login-form .hint {
    font-size: 13px;
    color: #6b778c;
    margin: 0 0 18px 0;
}

.login-form .field {
    margin-bottom: 14px;
}

.login-form .field .ui-inputfield,
.login-form .field input {
    width: 100%;
    height: 44px;
    border-radius: 10px;
}

.login-form .loginButton .ui-button {
    width: 100%;
    height: 46px;
    border-radius: 10px;
    font-weight: 700;
    background: #1b6e9d !important;
    border-color: #1b6e9d !important;
    color: #fff !important;
    box-shadow: 0 10px 22px rgba(27, 110, 157, .22);
}

.login-form .loginButton .ui-button:hover,
.login-form .loginButton .ui-button:focus,
.login-form .loginButton .ui-button.ui-state-hover,
.login-form .loginButton .ui-button.ui-state-focus {
    background: #155a80 !important;
    border-color: #155a80 !important;
    box-shadow: 0 12px 26px rgba(21, 90, 128, .28);
}

.login-form .loginButton .ui-button:active,
.login-form .loginButton .ui-button.ui-state-active {
    background: #114a6a !important;
    border-color: #114a6a !important;
    box-shadow: 0 8px 16px rgba(17, 74, 106, .24);
}

.login-links {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 18px;
    font-size: 12px;
}

.login-links a {
    color: #6b778c;
    text-decoration: none;
}

.login-links a:hover {
    color: #1B6E9D;
    text-decoration: underline;
}

@media (max-width: 900px) {
    .login-grid {
        flex-direction: column;
        min-height: auto;
    }

    .login-brand {
        min-width: unset;
        padding: 32px 28px;
    }

    .login-form {
        min-width: unset;
        padding: 32px 28px;
    }
}

@media (max-width: 420px) {
    .login-shell {
        padding: 14px;
    }

    .login-brand,
    .login-form {
        padding: 24px 18px;
    }
}
