:root {
    --pv-ink: #102f4f;
    --pv-blue: #155da8;
    --pv-lapis: #173f8f;
    --pv-turquoise: #36aeb4;
    --pv-gold: #d89b32;
    --pv-coral: #d96b4c;
    --pv-paper: #fbf4df;
    --pv-ivory: #fffdf7;
    --pv-muted: #617082;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--pv-paper);
}

.pv-body {
    min-height: 100vh;
    margin: 0;
    color: var(--pv-ink);
    background:
        radial-gradient(circle at 8% 12%, rgba(54, 174, 180, .14), transparent 24rem),
        #f8f2e3;
    font-family: "Mikhak", Tahoma, sans-serif;
}

.pv-header {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 12px clamp(18px, 5vw, 72px);
    background: rgba(255, 253, 247, .94);
    border-bottom: 1px solid rgba(21, 93, 168, .14);
    backdrop-filter: blur(16px);
    position: relative;
    z-index: 10;
}

.pv-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--pv-ink);
    text-decoration: none;
}

.pv-brand-mark {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 16px 16px 7px 16px;
    color: #fff;
    font-size: 23px;
    font-weight: 950;
    background: linear-gradient(145deg, var(--pv-lapis), var(--pv-turquoise));
    box-shadow: 0 9px 20px rgba(23, 63, 143, .23);
}

.pv-brand strong,
.pv-brand small {
    display: block;
}

.pv-brand strong {
    font-size: 16px;
    font-weight: 950;
}

.pv-brand small {
    margin-top: 2px;
    color: var(--pv-muted);
    font-size: 11px;
}

.pv-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    border: 1px solid rgba(21, 93, 168, .18);
    border-radius: 999px;
    color: var(--pv-blue);
    background: #fff;
    font-size: 12px;
    font-weight: 900;
    text-decoration: none;
}

.pv-messages {
    width: min(94%, 720px);
    position: fixed;
    z-index: 30;
    top: 88px;
    right: 50%;
    transform: translateX(50%);
}

.pv-message {
    padding: 13px 18px;
    margin-bottom: 8px;
    border: 1px solid rgba(255, 255, 255, .72);
    border-radius: 15px;
    color: #63340e;
    background: rgba(255, 238, 187, .96);
    box-shadow: 0 14px 34px rgba(16, 47, 79, .14);
    text-align: center;
    font-size: 13px;
    font-weight: 850;
    backdrop-filter: blur(12px);
}

.pv-message-error {
    color: #7b2520;
    background: rgba(255, 224, 216, .97);
}

.pv-message-success {
    color: #165a46;
    background: rgba(218, 245, 232, .97);
}

.pv-login-stage {
    min-height: calc(100vh - 132px);
    position: relative;
    isolation: isolate;
    overflow: hidden;
}

.pv-login-art {
    position: absolute;
    inset: 0;
    z-index: -2;
    background:
        linear-gradient(90deg, rgba(8, 35, 76, .72) 0%, rgba(8, 35, 76, .28) 42%, rgba(255, 249, 231, .08) 72%),
        url("../img/pazhvak/virtual-school/iranian-art-hero-v1.webp") center / cover no-repeat;
}

.pv-login-art::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 58%, rgba(10, 35, 66, .35));
}

.pv-login-grid {
    width: min(1180px, calc(100% - 40px));
    min-height: calc(100vh - 132px);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.08fr .82fr;
    align-items: center;
    gap: clamp(36px, 7vw, 100px);
    padding: 54px 0;
}

.pv-login-intro {
    max-width: 560px;
    color: #fff;
    text-shadow: 0 2px 18px rgba(9, 34, 70, .22);
}

.pv-eyebrow,
.pv-card-kicker {
    display: inline-block;
    color: var(--pv-gold);
    font-size: 12px;
    font-weight: 950;
    letter-spacing: .02em;
}

.pv-login-intro h1 {
    margin: 13px 0 16px;
    font-size: clamp(35px, 5vw, 67px);
    font-weight: 950;
    line-height: 1.35;
}

.pv-login-intro p {
    max-width: 530px;
    margin: 0;
    color: rgba(255, 255, 255, .88);
    font-size: 15px;
    line-height: 2;
}

.pv-intro-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 24px;
}

.pv-intro-tags span {
    padding: 8px 13px;
    border: 1px solid rgba(255, 255, 255, .26);
    border-radius: 999px;
    color: #fff;
    background: rgba(10, 46, 91, .34);
    font-size: 11px;
    font-weight: 850;
    backdrop-filter: blur(9px);
}

.pv-login-card,
.pv-dialog-card {
    position: relative;
    overflow: hidden;
    padding: clamp(27px, 4vw, 44px);
    border: 1px solid rgba(255, 255, 255, .78);
    border-radius: 34px 34px 12px 34px;
    background: rgba(255, 253, 247, .93);
    box-shadow: 0 30px 80px rgba(8, 37, 78, .28);
    backdrop-filter: blur(20px);
}

.pv-login-card::before,
.pv-dialog-card::before {
    content: "";
    position: absolute;
    width: 170px;
    height: 170px;
    top: -96px;
    left: -88px;
    border: 18px double rgba(54, 174, 180, .13);
    border-radius: 50%;
}

.pv-card-ornament,
.pv-dialog-icon {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    margin-bottom: 19px;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(145deg, var(--pv-coral), var(--pv-gold));
    box-shadow: 0 10px 24px rgba(216, 155, 50, .24);
}

.pv-login-card h2,
.pv-dialog-card h1 {
    margin: 8px 0 9px;
    color: var(--pv-ink);
    font-size: clamp(23px, 3vw, 31px);
    font-weight: 950;
    line-height: 1.65;
}

.pv-login-card > p,
.pv-dialog-card > p {
    margin: 0;
    color: var(--pv-muted);
    font-size: 12px;
    line-height: 1.9;
}

.pv-form {
    margin-top: 25px;
}

.pv-form label {
    display: block;
    margin: 0 3px 7px;
    color: var(--pv-ink);
    font-size: 12px;
    font-weight: 900;
}

.pv-form input {
    width: 100%;
    height: 51px;
    margin-bottom: 17px;
    padding: 0 16px;
    border: 1px solid rgba(21, 93, 168, .2);
    border-radius: 15px;
    outline: none;
    color: var(--pv-ink);
    background: rgba(255, 255, 255, .86);
    font-family: inherit;
    transition: border-color .2s, box-shadow .2s;
}

.pv-form input:focus {
    border-color: var(--pv-turquoise);
    box-shadow: 0 0 0 4px rgba(54, 174, 180, .13);
}

.pv-form button,
.pv-primary-button {
    width: 100%;
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 0;
    border-radius: 16px;
    color: #fff;
    background: linear-gradient(135deg, var(--pv-lapis), var(--pv-blue));
    box-shadow: 0 14px 30px rgba(21, 93, 168, .24);
    font-family: inherit;
    font-weight: 950;
    cursor: pointer;
    transition: transform .2s, box-shadow .2s;
}

.pv-form button:hover,
.pv-form button:focus-visible,
.pv-primary-button:hover,
.pv-primary-button:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 18px 34px rgba(21, 93, 168, .31);
}

.pv-login-help {
    margin-top: 18px !important;
    padding-top: 15px;
    border-top: 1px dashed rgba(21, 93, 168, .2);
    text-align: center;
    font-size: 10px !important;
}

.pv-dialog-stage {
    min-height: calc(100vh - 132px);
    display: grid;
    place-items: center;
    padding: 50px 20px;
    background:
        linear-gradient(rgba(13, 52, 97, .76), rgba(13, 52, 97, .76)),
        url("../img/pazhvak/virtual-school/iranian-art-hero-v1.webp") center / cover;
}

.pv-dialog-card {
    width: min(100%, 620px);
    text-align: center;
}

.pv-dialog-icon {
    margin-inline: auto;
}

.pv-session-details {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 25px 0;
}

.pv-session-details div {
    min-width: 0;
    padding: 14px 10px;
    border: 1px solid rgba(21, 93, 168, .12);
    border-radius: 15px;
    background: rgba(234, 244, 251, .76);
}

.pv-session-details dt {
    color: var(--pv-muted);
    font-size: 10px;
}

.pv-session-details dd {
    overflow-wrap: anywhere;
    margin: 7px 0 0;
    color: var(--pv-ink);
    font-size: 11px;
    font-weight: 900;
}

.pv-secondary-button {
    display: block;
    margin-top: 10px;
    padding: 13px;
    border-radius: 15px;
    color: var(--pv-muted);
    text-decoration: none;
    font-size: 12px;
    font-weight: 850;
}

.pv-classroom {
    min-height: calc(100vh - 132px);
    padding: clamp(28px, 5vw, 65px) 20px 80px;
    background:
        linear-gradient(rgba(248, 242, 227, .91), rgba(248, 242, 227, .97)),
        url("../img/pazhvak/virtual-school/iranian-art-hero-v1.webp") top center / 100% auto no-repeat;
}

.pv-classroom-shell {
    width: min(1180px, 100%);
    margin: 0 auto;
}

.pv-welcome {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    padding: clamp(21px, 4vw, 35px);
    border: 1px solid rgba(255, 255, 255, .74);
    border-radius: 32px 32px 10px 32px;
    color: #fff;
    background:
        radial-gradient(circle at 12% 10%, rgba(54, 174, 180, .42), transparent 23rem),
        linear-gradient(130deg, #102f4f, #173f8f);
    box-shadow: 0 24px 55px rgba(16, 47, 79, .2);
}

.pv-welcome-copy {
    display: flex;
    align-items: center;
    gap: 18px;
}

.pv-student-photo,
.pv-student-placeholder {
    width: 82px;
    height: 82px;
    flex: 0 0 auto;
    border: 3px solid rgba(255, 255, 255, .9);
    border-radius: 26px 26px 8px 26px;
    box-shadow: 0 11px 25px rgba(0, 0, 0, .18);
}

.pv-student-photo {
    object-fit: cover;
}

.pv-student-placeholder {
    display: grid;
    place-items: center;
    color: var(--pv-lapis);
    background: var(--pv-paper);
    font-size: 34px;
}

.pv-welcome h1 {
    margin: 5px 0 3px;
    color: #fff;
    font-size: clamp(22px, 4vw, 34px);
    font-weight: 950;
}

.pv-welcome p {
    margin: 0;
    color: rgba(255, 255, 255, .74);
    font-size: 12px;
}

.pv-logout-button {
    padding: 11px 17px;
    border: 1px solid rgba(255, 255, 255, .32);
    border-radius: 999px;
    color: #fff;
    background: rgba(255, 255, 255, .1);
    font-family: inherit;
    font-size: 11px;
    font-weight: 900;
    cursor: pointer;
}

.pv-section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin: 48px 0 23px;
}

.pv-section-heading > div > span {
    color: var(--pv-coral);
    font-size: 11px;
    font-weight: 900;
}

.pv-section-heading h2 {
    margin: 5px 0 0;
    color: var(--pv-ink);
    font-size: clamp(22px, 4vw, 32px);
    font-weight: 950;
}

.pv-class-count {
    padding: 8px 12px;
    border-radius: 999px;
    color: var(--pv-blue);
    background: rgba(255, 255, 255, .74);
    font-size: 11px;
    font-weight: 900;
}

.pv-class-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 285px), 1fr));
    gap: 23px;
}

.pv-class-card {
    overflow: hidden;
    border: 1px solid rgba(21, 93, 168, .12);
    border-radius: 28px 28px 10px 28px;
    background: rgba(255, 253, 247, .96);
    box-shadow: 0 18px 44px rgba(16, 47, 79, .11);
    transition: transform .22s, box-shadow .22s;
}

.pv-class-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 26px 50px rgba(16, 47, 79, .17);
}

.pv-class-art {
    height: 205px;
    position: relative;
    overflow: hidden;
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at 30% 25%, color-mix(in srgb, var(--class-accent), white 42%), transparent 38%),
        linear-gradient(145deg, var(--class-accent), #102f4f);
}

.pv-class-art::after {
    content: "";
    position: absolute;
    inset: 0;
    opacity: .22;
    background-image:
        linear-gradient(30deg, transparent 44%, rgba(255,255,255,.7) 45%, transparent 47%),
        linear-gradient(-30deg, transparent 44%, rgba(255,255,255,.5) 45%, transparent 47%);
    background-size: 30px 30px;
}

.pv-class-art img {
    width: 126px;
    height: 126px;
    position: relative;
    z-index: 2;
    border: 4px solid rgba(255, 255, 255, .88);
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 14px 35px rgba(0, 0, 0, .25);
}

.pv-art-corner {
    width: 100px;
    height: 100px;
    position: absolute;
    border: 2px solid rgba(255, 255, 255, .3);
    transform: rotate(45deg);
}

.pv-art-corner-one {
    top: -53px;
    right: -42px;
}

.pv-art-corner-two {
    bottom: -55px;
    left: -43px;
}

.pv-class-body {
    padding: 22px;
}

.pv-class-specialty {
    color: var(--class-accent);
    font-size: 10px;
    font-weight: 950;
}

.pv-class-body h3 {
    margin: 7px 0 3px;
    color: var(--pv-ink);
    font-size: 20px;
    font-weight: 950;
}

.pv-class-body strong {
    color: var(--pv-muted);
    font-size: 12px;
}

.pv-class-body p {
    min-height: 48px;
    margin: 13px 0 0;
    color: var(--pv-muted);
    font-size: 11px;
    line-height: 1.9;
}

.pv-class-schedule {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 16px;
    padding: 10px 12px;
    border-radius: 12px;
    color: var(--pv-ink);
    background: #f3eddd;
    font-size: 10px;
    font-weight: 850;
}

.pv-class-enter {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 13px;
    border-radius: 13px;
    color: #fff;
    background: var(--class-accent);
    text-decoration: none;
    font-size: 11px;
    font-weight: 950;
}

.pv-empty-state {
    padding: 64px 22px;
    border: 1px dashed rgba(21, 93, 168, .27);
    border-radius: 30px;
    background: rgba(255, 253, 247, .78);
    text-align: center;
}

.pv-empty-state > span {
    color: var(--pv-gold);
    font-size: 46px;
}

.pv-empty-state h2 {
    margin: 10px 0 6px;
    font-size: 20px;
}

.pv-empty-state p {
    margin: 0;
    color: var(--pv-muted);
    font-size: 12px;
}

.pv-footer {
    min-height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 13px 20px;
    color: rgba(255, 255, 255, .72);
    background: var(--pv-ink);
    font-size: 10px;
}

@media (max-width: 800px) {
    .pv-header {
        min-height: 68px;
    }

    .pv-brand small {
        display: none;
    }

    .pv-back-link {
        padding: 9px 11px;
        font-size: 0;
    }

    .pv-back-link span {
        font-size: 17px;
    }

    .pv-login-grid {
        width: min(100% - 28px, 560px);
        grid-template-columns: 1fr;
        gap: 22px;
        padding: 42px 0;
    }

    .pv-login-art {
        background:
            linear-gradient(180deg, rgba(8, 35, 76, .42), rgba(8, 35, 76, .74)),
            url("../img/pazhvak/virtual-school/iranian-art-hero-v1.webp") 30% center / cover no-repeat;
    }

    .pv-login-intro {
        text-align: center;
    }

    .pv-login-intro h1 {
        font-size: 35px;
    }

    .pv-login-intro p {
        font-size: 12px;
    }

    .pv-intro-tags {
        justify-content: center;
    }

    .pv-session-details {
        grid-template-columns: 1fr;
    }

    .pv-welcome,
    .pv-section-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .pv-welcome-copy {
        align-items: flex-start;
    }

    .pv-logout-button {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .pv-brand strong {
        font-size: 12px;
    }

    .pv-brand-mark {
        width: 42px;
        height: 42px;
    }

    .pv-login-card,
    .pv-dialog-card {
        border-radius: 25px 25px 9px 25px;
    }

    .pv-welcome-copy {
        flex-direction: column;
    }

    .pv-footer {
        flex-wrap: wrap;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
}
