
/* IN1 Page Password Logout — modern school design */
.in1-protected-page {
    --in1-blue: #0b5fc6;
    --in1-dark: #163d67;
    --in1-red: #e8455a;
    --in1-text: #173b63;
    --in1-muted: #66778c;
    --in1-border: #d9e3ee;
    --in1-bg: #f3f8fd;
}

.in1-protected-page .site-content,
.in1-protected-page .content-area,
.in1-protected-page .entry-content {
    width: 100%;
    max-width: none;
}

/* Locked/password screen */
.in1-password-screen {
    position: relative;
    min-height: 100vh;
    margin: 0;
    padding: 34px 20px 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(240,248,255,.95), rgba(224,239,250,.88)),
        url("school-building.jpg") center/cover no-repeat;
}

.in1-password-backdrop {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 15% 15%, rgba(255,255,255,.95), transparent 35%),
        linear-gradient(180deg, rgba(255,255,255,.08), rgba(12,55,98,.15));
}

.in1-password-card {
    position: relative;
    z-index: 1;
    width: min(100%, 470px);
    box-sizing: border-box;
    padding: 32px 34px 30px;
    border: 1px solid rgba(255,255,255,.85);
    border-radius: 16px;
    background: rgba(255,255,255,.96);
    box-shadow: 0 22px 55px rgba(20,61,98,.20);
    text-align: center;
    backdrop-filter: blur(5px);
}

.in1-school-brand {
    margin-bottom: 20px;
}

.in1-school-logo {
    position: relative;
    width: 58px;
    height: 48px;
    margin: 0 auto 8px;
}

.in1-cap-top {
    position: absolute;
    width: 42px;
    height: 24px;
    left: 8px;
    top: 2px;
    background: #075bb9;
    transform: perspective(30px) rotateX(12deg) rotate(0deg);
    clip-path: polygon(50% 0, 100% 35%, 50% 70%, 0 35%);
}

.in1-cap-base {
    position: absolute;
    left: 14px;
    top: 19px;
    width: 30px;
    height: 17px;
    border-left: 6px solid #075bb9;
    border-right: 6px solid #075bb9;
    border-bottom: 6px solid #075bb9;
    border-radius: 0 0 9px 9px;
}

.in1-school-brand h1,
.in1-main-brand h1 {
    margin: 0;
    color: var(--in1-dark);
    font-size: 23px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -.3px;
}

.in1-school-brand p,
.in1-main-brand p {
    margin: 7px 0 0;
    color: #728196;
    font-size: 12px;
    letter-spacing: .15px;
}

.in1-lock-icon {
    position: relative;
    width: 54px;
    height: 54px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: #eaf3ff;
}

.in1-lock-shackle {
    position: absolute;
    left: 19px;
    top: 12px;
    width: 16px;
    height: 15px;
    border: 3px solid #0860c8;
    border-bottom: 0;
    border-radius: 10px 10px 0 0;
}

.in1-lock-body {
    position: absolute;
    left: 16px;
    top: 24px;
    width: 22px;
    height: 17px;
    border-radius: 4px;
    background: #0860c8;
}

.in1-lock-keyhole {
    position: absolute;
    left: 25px;
    top: 29px;
    width: 4px;
    height: 8px;
    border-radius: 4px;
    background: #fff;
}

.in1-password-card h2 {
    margin: 0 0 7px;
    color: #1b3859;
    font-size: 17px;
    font-weight: 800;
}

.in1-password-description {
    margin: 0 0 19px;
    color: #6b7888;
    font-size: 13px;
}

.in1-password-form {
    margin: 0;
}

.in1-password-input-wrap {
    position: relative;
    margin-bottom: 11px;
}

.in1-password-input-wrap input {
    width: 100%;
    height: 48px;
    box-sizing: border-box;
    padding: 0 48px 0 15px;
    border: 1px solid #d6e0ea;
    border-radius: 7px;
    background: #fff;
    color: #1d3550;
    font-size: 13px;
    outline: none;
    box-shadow: 0 2px 5px rgba(30,65,95,.04);
}

.in1-password-input-wrap input:focus {
    border-color: #2d7bd7;
    box-shadow: 0 0 0 3px rgba(45,123,215,.12);
}

.in1-password-input-wrap input::placeholder {
    color: #a2adba;
}

.in1-password-toggle {
    position: absolute;
    top: 0;
    right: 3px;
    width: 44px;
    height: 48px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.in1-eye {
    position: relative;
    display: inline-block;
    width: 17px;
    height: 11px;
    border: 1.7px solid #7a8a9b;
    border-radius: 50% / 65%;
}

.in1-eye:after {
    content: "";
    position: absolute;
    width: 4px;
    height: 4px;
    left: 5px;
    top: 2px;
    border-radius: 50%;
    background: #7a8a9b;
}

.in1-password-submit {
    width: 100%;
    min-height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border: 0;
    border-radius: 7px;
    background: #0861c9;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 7px 16px rgba(8,97,201,.20);
    transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}

.in1-password-submit:hover {
    filter: brightness(1.04);
    transform: translateY(-1px);
    box-shadow: 0 9px 20px rgba(8,97,201,.25);
}

.in1-key-icon {
    font-size: 16px;
    line-height: 1;
    transform: rotate(-35deg);
}

.in1-password-or {
    position: relative;
    margin: 18px 0 15px;
    color: #8793a1;
    font-size: 11px;
}

.in1-password-or:before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 1px;
    background: #e1e7ee;
}

.in1-password-or span {
    position: relative;
    padding: 0 11px;
    background: #fff;
}

.in1-protected-note {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 6px;
    margin: 0;
    color: #7b8795;
    font-size: 10px;
    line-height: 1.55;
}

/* Unlocked/main protected page */
.in1-main-screen {
    width: 100%;
    min-height: 100vh;
    box-sizing: border-box;
    padding: 20px clamp(18px, 4vw, 52px) 45px;
    background: #f3f8fd;
    color: var(--in1-text);
}

.in1-main-header {
    width: min(100%, 1120px);
    margin: 0 auto 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.in1-main-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.in1-main-brand .in1-school-logo {
    flex: 0 0 58px;
    margin: 0;
}

.in1-main-brand h1 {
    font-size: 21px;
}

.in1-main-brand p {
    margin-top: 4px;
    font-size: 10px;
}

.in1-page-password-logout-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 40px;
    padding: 0 17px;
    border-radius: 7px;
    background: var(--in1-red);
    color: #fff !important;
    text-decoration: none !important;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 5px 13px rgba(232,69,90,.18);
    transition: transform .15s ease, filter .15s ease, box-shadow .15s ease;
}

.in1-page-password-logout-button:hover {
    color: #fff !important;
    filter: brightness(1.04);
    transform: translateY(-1px);
    box-shadow: 0 7px 16px rgba(232,69,90,.23);
}

.in1-logout-icon {
    font-size: 14px;
    line-height: 1;
}

.in1-protected-success {
    width: min(100%, 1120px);
    margin: 0 auto 14px;
    padding: 10px 14px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: 7px;
    background: #dcf7e9;
    color: #1d7a4b;
    font-size: 10px;
}

.in1-success-check {
    display: inline-flex;
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #20a563;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
}

.in1-protected-success strong,
.in1-protected-success span {
    display: block;
}

.in1-protected-success strong {
    margin-bottom: 2px;
    font-size: 10px;
}

.in1-main-card {
    width: min(100%, 1120px);
    margin: 0 auto;
    padding: 14px;
    box-sizing: border-box;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 8px 26px rgba(32,75,115,.08);
}

.in1-hero-image {
    width: 100%;
    height: clamp(150px, 21vw, 225px);
    overflow: hidden;
    border-radius: 7px;
    background: #dfeaf4;
}

.in1-hero-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.in1-main-content {
    padding: 15px 2px 0;
}

.in1-main-content h2 {
    margin: 0 0 7px;
    color: #153c63;
    font-size: 17px;
    font-weight: 800;
}

.in1-page-content {
    color: #566b80;
    font-size: 13px;
    line-height: 1.7;
}

.in1-page-content > :first-child {
    margin-top: 0;
}

.in1-page-content > :last-child {
    margin-bottom: 0;
}

.in1-main-info {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin-top: 15px;
    padding: 11px 13px;
    border-radius: 7px;
    background: #eaf4ff;
    color: #39709f;
    font-size: 10px;
    line-height: 1.5;
}

.in1-info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 17px;
    height: 17px;
    flex: 0 0 17px;
    border-radius: 50%;
    background: #2778c5;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
}

.in1-page-password-logout-wrap {
    display: flex;
    justify-content: flex-end;
    width: 100%;
    box-sizing: border-box;
    margin: 20px 0 10px;
}

/* Prevent common theme wrappers from constraining the protected design */
.in1-protected-page .in1-main-screen {
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 700px) {
    .in1-password-screen {
        padding: 24px 14px 35px;
        align-items: flex-start;
    }

    .in1-password-card {
        margin-top: 20px;
        padding: 27px 21px 24px;
        border-radius: 14px;
    }

    .in1-main-screen {
        padding: 15px 12px 30px;
    }

    .in1-main-header {
        align-items: flex-start;
    }

    .in1-main-brand {
        gap: 8px;
    }

    .in1-main-brand .in1-school-logo {
        transform: scale(.82);
        transform-origin: left center;
        margin-right: -9px;
    }

    .in1-main-brand h1 {
        font-size: 17px;
    }

    .in1-page-password-logout-button {
        min-height: 38px;
        padding: 0 12px;
        font-size: 11px;
    }

    .in1-hero-image {
        height: 160px;
    }
}

@media (max-width: 430px) {
    .in1-main-header {
        flex-wrap: wrap;
    }

    .in1-main-header .in1-page-password-logout-button {
        margin-left: auto;
    }

    .in1-protected-success {
        align-items: flex-start;
    }
}
