/* Board Portal Login Screen - Only loaded on /board/portal/ */

body.board-portal-login #middle,
body.board-portal-login #middle .middle_inner,
body.board-portal-login #middle .content_wrap,
body.board-portal-login #middle .middle_content,
body.board-portal-login #middle .middle_content.entry,
body.board-portal-login #middle .content.entry {
    background: none !important;
    background-color: transparent !important;
    background-image: none !important;
}

body.board-portal-login #middle {
    background: linear-gradient(135deg, #0a1628 0%, #162544 40%, #1b3156 70%, #0e1e3d 100%) !important;
    min-height: 70vh;
    position: relative;
    overflow: hidden;
}

body.board-portal-login #middle::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(255, 255, 255, 0.03) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(255, 255, 255, 0.02) 0%, transparent 40%) !important;
    pointer-events: none;
    z-index: 0;
}

body.board-portal-login .middle_inner {
    position: relative;
    z-index: 1;
}

body.board-portal-login .cmsmasters_heading,
body.board-portal-login .cmsmasters_breadcrumbs {
    display: none !important;
}

body.board-portal-login .headline {
    display: none !important;
}

body.board-portal-login .content_wrap {
    max-width: 100% !important;
    padding: 0 !important;
}

body.board-portal-login .middle_content.entry,
body.board-portal-login .content.entry {
    padding: 0 !important;
    margin: 0 !important;
}

/* Portal Container */
.board-portal-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 65vh;
    padding: 60px 20px;
}

.board-portal-card {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 56px 48px;
    max-width: 460px;
    width: 100%;
    text-align: center;
    box-shadow:
        0 25px 60px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset;
    animation: portalFadeIn 0.6s ease-out;
}

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

/* Logo */
.board-portal-logo {
    margin-bottom: 32px;
}

.board-portal-logo img {
    max-width: 220px;
    height: auto;
}

/* Divider */
.board-portal-divider {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(200, 170, 110, 0.8), transparent);
    margin: 0 auto 28px;
}

/* Title */
.board-portal-title {
    font-family: inherit;
    font-size: 28px;
    font-weight: 300;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: #ffffff !important;
    margin: 0 0 8px;
    line-height: 1.3;
}

.board-portal-subtitle {
    font-family: inherit;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45) !important;
    margin: 0 0 36px;
}

/* Form */
.board-portal-form {
    width: 100%;
}

.board-portal-input-group {
    position: relative;
    margin-bottom: 24px;
}

.board-portal-input-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    margin-top: -12px;
    width: 18px;
    height: 18px;
    pointer-events: none;
    z-index: 2;
}

.board-portal-input-icon svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: rgba(255, 255, 255, 0.35);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.board-portal-form input[type="password"] {
    width: 100% !important;
    padding: 16px 20px 16px 50px !important;
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 8px !important;
    color: #ffffff !important;
    font-size: 15px !important;
    font-family: inherit;
    letter-spacing: 2px;
    outline: none;
    transition: all 0.3s ease;
    box-sizing: border-box;
    height: auto !important;
    line-height: normal !important;
}

.board-portal-form input[type="password"]::placeholder {
    color: rgba(255, 255, 255, 0.3);
    letter-spacing: 1px;
    font-size: 13px;
}

.board-portal-form input[type="password"]:focus {
    border-color: rgba(200, 170, 110, 0.5) !important;
    background: rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 0 0 3px rgba(200, 170, 110, 0.1) !important;
}

.board-portal-form input[type="submit"] {
    width: 100% !important;
    padding: 16px 32px !important;
    background: linear-gradient(135deg, #c8aa6e, #a8904e) !important;
    border: none !important;
    border-radius: 8px !important;
    color: #0e1e3d !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    font-family: inherit;
    letter-spacing: 3px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(200, 170, 110, 0.25);
    height: auto !important;
    line-height: normal !important;
}

.board-portal-form input[type="submit"]:hover {
    background: linear-gradient(135deg, #d4b878, #b89c5a) !important;
    box-shadow: 0 6px 25px rgba(200, 170, 110, 0.35);
    transform: translateY(-1px);
}

.board-portal-form input[type="submit"]:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(200, 170, 110, 0.2);
}

/* Footer note */
.board-portal-footer {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
}

.board-portal-footer p {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.3) !important;
    letter-spacing: 1px;
    margin: 0;
    line-height: 1.6;
    text-align: center;
}

.board-portal-shield {
    display: block;
    margin: 0 auto 10px;
    text-align: center;
}

.board-portal-shield svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: rgba(255, 255, 255, 0.2);
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Hide default WP password protection text */
body.board-portal-login .post-password-message,
body.board-portal-login .entry > p:not(.board-portal-footer p) {
    display: none;
}

/* Responsive */
@media only screen and (max-width: 600px) {
    .board-portal-card {
        padding: 40px 28px;
        border-radius: 12px;
    }

    .board-portal-title {
        font-size: 22px;
        letter-spacing: 3px;
    }

    .board-portal-logo img {
        max-width: 170px;
    }

    .board-portal-container {
        padding: 40px 16px;
        min-height: 60vh;
    }
}

@media only screen and (max-width: 400px) {
    .board-portal-card {
        padding: 32px 20px;
    }

    .board-portal-title {
        font-size: 20px;
        letter-spacing: 2px;
    }

    .board-portal-subtitle {
        font-size: 11px;
    }
}
