* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100vh;
}

body {
    background:
        radial-gradient(circle at 14% 10%, rgba(56, 189, 248, .16), transparent 30%),
        radial-gradient(circle at 86% 22%, rgba(124, 58, 237, .15), transparent 32%),
        linear-gradient(180deg, #07111f 0%, #020817 58%, #010612 100%);
    color: #f8fafc;
    font-family: Arial, Helvetica, sans-serif;
}

a {
    color: inherit;
}

.ytn-auth-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.ytn-auth-header {
    padding: 26px 34px;
    border-bottom: 1px solid rgba(148, 163, 184, .22);
    background: rgba(15, 23, 42, .56);
    box-shadow: 0 18px 50px rgba(0,0,0,.18);
}

.ytn-auth-header h1 {
    margin: 0 0 6px;
    font-size: clamp(26px, 3vw, 34px);
    letter-spacing: -0.7px;
}

.ytn-auth-header p {
    margin: 0;
    color: #a9c4df;
    font-size: 15px;
}

.ytn-login-shell {
    width: 100%;
    max-width: 1220px;
    margin: 0 auto;
    padding: 42px 32px 48px;
    flex: 1;
    display: flex;
    align-items: center;
}

.ytn-login-card {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(360px, .98fr);
    gap: 36px;
    border: 1px solid rgba(99, 130, 169, .46);
    border-radius: 18px;
    padding: 28px 34px;
    background:
        linear-gradient(135deg, rgba(15, 23, 42, .94), rgba(8, 18, 34, .86)),
        radial-gradient(circle at top left, rgba(56, 189, 248, .12), transparent 35%);
    box-shadow: 0 28px 90px rgba(0,0,0,.42);
}

.ytn-login-form-panel {
    padding-right: 34px;
    border-right: 1px solid rgba(148, 163, 184, .24);
}

.ytn-login-hero-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 10px 8px;
}

.ytn-login-heading {
    display: flex;
    align-items: center;
    gap: 22px;
    padding-bottom: 24px;
    margin-bottom: 24px;
    border-bottom: 1px solid rgba(148, 163, 184, .23);
}

.ytn-login-icon-badge {
    width: 78px;
    height: 78px;
    flex: 0 0 78px;
    display: grid;
    place-items: center;
    border-radius: 24px;
    background: radial-gradient(circle at 35% 25%, rgba(56, 189, 248, .28), rgba(124, 58, 237, .12));
    box-shadow: 0 18px 42px rgba(56,189,248,.16);
    overflow: visible;
}

.ytn-login-icon-badge img {
    width: 88px;
    height: 88px;
    object-fit: contain;
    filter: drop-shadow(0 12px 20px rgba(0, 0, 0, .42));
}

.ytn-brand {
    font-size: 30px;
    font-weight: 900;
    margin-bottom: 6px;
    letter-spacing: -0.5px;
}

.ytn-brand span {
    color: #38bdf8;
}

.ytn-login-card h2 {
    margin: 0 0 6px;
    font-size: 27px;
    line-height: 1.18;
    letter-spacing: -0.35px;
}

.ytn-muted {
    color: #a9c4df;
    margin: 0;
    font-size: 16px;
    line-height: 1.55;
}

.validation-summary-errors {
    color: #fecaca;
    background: rgba(127,29,29,.55);
    border: 1px solid #ef4444;
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 16px;
    font-size: 14px;
}

.validation-summary-valid {
    display: none;
}

.ytn-login-card label {
    display: block;
    margin: 18px 0 8px;
    color: #f8fafc;
    font-size: 14px;
    font-weight: 900;
}

.ytn-input-wrap {
    position: relative;
}

.ytn-input-wrap .ytn-input-glyph {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 17px;
    pointer-events: none;
}

.ytn-input-wrap .ytn-input-check {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    color: #052e16;
    background: #22c55e;
    font-size: 13px;
    font-weight: 900;
    pointer-events: none;
    box-shadow: 0 0 0 3px rgba(34,197,94,.14);
}

.ytn-login-card input,
.ytn-login-card input[type="text"],
.ytn-login-card input[type="email"],
.ytn-login-card input[type="password"],
.auth-card input,
.reset-card input,
.login-card input {
    display: block !important;
    width: 100% !important;
    height: 52px !important;
    min-height: 52px !important;
    border-radius: 13px !important;
    border: 1px solid #334155 !important;
    background-color: rgba(2, 8, 23, .92) !important;
    background-image: none !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    caret-color: #38bdf8 !important;
    padding: 0 46px 0 48px !important;
    font-size: 15px !important;
    outline: none !important;
    box-shadow: none !important;
}

.ytn-login-card input::placeholder,
.auth-card input::placeholder,
.reset-card input::placeholder,
.login-card input::placeholder {
    color: #94a3b8 !important;
    -webkit-text-fill-color: #94a3b8 !important;
    opacity: 1 !important;
}

.ytn-login-card input:focus,
.auth-card input:focus,
.reset-card input:focus,
.login-card input:focus {
    background-color: rgba(2, 8, 23, .96) !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    border-color: #22c55e !important;
    box-shadow: 0 0 0 3px rgba(34,197,94,.16) !important;
    outline: none !important;
}

.ytn-login-card input:-webkit-autofill,
.ytn-login-card input:-webkit-autofill:hover,
.ytn-login-card input:-webkit-autofill:focus,
.ytn-login-card input:-webkit-autofill:active,
.auth-card input:-webkit-autofill,
.auth-card input:-webkit-autofill:hover,
.auth-card input:-webkit-autofill:focus,
.auth-card input:-webkit-autofill:active,
.reset-card input:-webkit-autofill,
.reset-card input:-webkit-autofill:hover,
.reset-card input:-webkit-autofill:focus,
.reset-card input:-webkit-autofill:active,
.login-card input:-webkit-autofill,
.login-card input:-webkit-autofill:hover,
.login-card input:-webkit-autofill:focus,
.login-card input:-webkit-autofill:active {
    -webkit-text-fill-color: #ffffff !important;
    box-shadow: 0 0 0 1000px #020817 inset !important;
    border: 1px solid #334155 !important;
    transition: background-color 9999s ease-in-out 0s !important;
}

.ytn-remember {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 10px !important;
    margin: 18px 0 0 !important;
    color: #cbd5e1 !important;
    font-size: 14px !important;
    line-height: 1 !important;
    white-space: nowrap !important;
}

.ytn-remember label {
    display: inline-flex !important;
    align-items: center !important;
    margin: 0 !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    color: #e2e8f0 !important;
    cursor: pointer !important;
    white-space: nowrap !important;
}

.ytn-remember input[type="checkbox"] {
    appearance: none !important;
    -webkit-appearance: none !important;
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    min-height: 20px !important;
    border-radius: 6px !important;
    border: 1px solid #94a3b8 !important;
    background: #020817 !important;
    display: inline-grid !important;
    place-content: center !important;
    margin: 0 !important;
    cursor: pointer !important;
    box-shadow: none !important;
    padding: 0 !important;
}

.ytn-remember input[type="checkbox"]::before {
    content: "" !important;
    width: 10px !important;
    height: 10px !important;
    transform: scale(0) !important;
    transition: 120ms transform ease-in-out !important;
    clip-path: polygon(14% 44%, 0 65%, 42% 100%, 100% 16%, 80% 0%, 36% 62%) !important;
    background: #ffffff !important;
}

.ytn-remember input[type="checkbox"]:checked {
    border-color: #38bdf8 !important;
    background: linear-gradient(135deg, #2563eb, #7c3aed) !important;
}

.ytn-remember input[type="checkbox"]:checked::before {
    transform: scale(1) !important;
}

.ytn-login-actions {
    display: grid;
    gap: 14px;
    margin-top: 24px;
}

.ytn-primary-button,
.ytn-secondary-link {
    width: 100%;
    min-height: 52px;
    border-radius: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    cursor: pointer;
    font-weight: 900;
    font-size: 15px;
}

.ytn-primary-button {
    color: white;
    border: 0;
    background: linear-gradient(90deg, #38bdf8, #2563eb 48%, #7c3aed);
    box-shadow: 0 14px 28px rgba(37, 99, 235, .24);
}

.ytn-primary-button:hover {
    filter: brightness(1.06);
}

.ytn-login-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    color: #94a3b8;
    margin: 22px 0 14px;
}

.ytn-login-divider::before,
.ytn-login-divider::after {
    content: "";
    height: 1px;
    flex: 1;
    background: rgba(148, 163, 184, .26);
}

.ytn-link-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.ytn-secondary-link {
    color: #38bdf8;
    background: rgba(15,23,42,.66);
    border: 1px solid rgba(99, 130, 169, .62);
}

.ytn-secondary-link:hover {
    border-color: #38bdf8;
    background: rgba(14, 116, 144, .12);
}

.ytn-hero-image {
    width: min(360px, 82%);
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 26px 50px rgba(0,0,0,.48));
    margin-bottom: 12px;
}

.ytn-hero-title {
    margin: 4px 0 22px;
    font-size: 18px;
    font-weight: 900;
}

.ytn-feature-list {
    width: min(460px, 100%);
    display: grid;
    gap: 18px;
    text-align: left;
}

.ytn-feature {
    display: grid;
    grid-template-columns: 46px 1fr;
    gap: 14px;
    align-items: center;
}

.ytn-feature-icon {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    font-size: 20px;
    background: linear-gradient(135deg, rgba(56,189,248,.9), rgba(124,58,237,.75));
    box-shadow: 0 12px 26px rgba(0,0,0,.25);
}

.ytn-feature:nth-child(2) .ytn-feature-icon {
    background: linear-gradient(135deg, #7c3aed, #9333ea);
}

.ytn-feature:nth-child(3) .ytn-feature-icon {
    background: linear-gradient(135deg, #22c55e, #15803d);
}

.ytn-feature:nth-child(4) .ytn-feature-icon {
    background: linear-gradient(135deg, #f59e0b, #b45309);
}

.ytn-feature strong {
    display: block;
    color: #f8fafc;
    font-size: 15px;
    margin-bottom: 4px;
}

.ytn-feature span {
    color: #a9c4df;
    font-size: 14px;
    line-height: 1.35;
}

.ytn-footer-note {
    text-align: center;
    color: #a9c4df;
    font-size: 13px;
    padding: 20px 16px 28px;
    border-top: 1px solid rgba(148, 163, 184, .18);
}

.ytn-footer-note a {
    color: #38bdf8;
    text-decoration: none;
}

.ytn-footer-note a:hover {
    text-decoration: underline;
}

body.school-login {
    background:
        radial-gradient(circle at 14% 10%, rgba(34, 197, 94, .14), transparent 30%),
        radial-gradient(circle at 86% 22%, rgba(56, 189, 248, .14), transparent 32%),
        linear-gradient(180deg, #07111f 0%, #020817 58%, #010612 100%);
}

body.school-login .ytn-primary-button {
    background: linear-gradient(90deg, #22c55e, #0ea5e9 58%, #2563eb);
}

body.therapist-login {
    background:
        radial-gradient(circle at 14% 10%, rgba(20, 184, 166, .16), transparent 30%),
        radial-gradient(circle at 86% 22%, rgba(124, 58, 237, .16), transparent 32%),
        linear-gradient(180deg, #07111f 0%, #020817 58%, #010612 100%);
}

body.therapist-login .ytn-primary-button {
    background: linear-gradient(90deg, #14b8a6, #2563eb 52%, #7c3aed);
}

@media (max-width: 900px) {
    .ytn-auth-header {
        padding: 22px 24px;
    }

    .ytn-login-shell {
        padding: 26px 18px 36px;
    }

    .ytn-login-card {
        grid-template-columns: 1fr;
        padding: 24px;
    }

    .ytn-login-form-panel {
        padding-right: 0;
        border-right: 0;
    }

    .ytn-login-hero-panel {
        border-top: 1px solid rgba(148, 163, 184, .22);
        padding-top: 22px;
    }
}

@media (max-width: 560px) {
    .ytn-login-heading {
        align-items: flex-start;
        gap: 14px;
    }

    .ytn-login-icon-badge {
        width: 62px;
        height: 62px;
        flex-basis: 62px;
        border-radius: 18px;
    }

    .ytn-login-icon-badge img {
        width: 72px;
        height: 72px;
    }

    .ytn-link-grid {
        grid-template-columns: 1fr;
    }
}


/* Ikalyx login footer — shared by Parent, School, Therapist, Kid and Admin login pages. */
.ytn-login-company-footer {
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    margin: 0 !important;
    padding: 18px 24px 24px !important;
}

.ytn-login-company-footer > div,
.ytn-login-company-footer .ytn-legal-disclaimer {
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
}

.ytn-login-company-footer .ytn-login-company-mark {
    margin: 6px auto 3px !important;
    color: #e5e7eb;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: .01em;
}

.ytn-login-company-footer .ytn-login-copyright,
.ytn-login-company-footer .ytn-login-product-line {
    color: #a9c4df;
    font-size: 13px;
    line-height: 1.45;
}

.ytn-login-company-footer .ikx {
    color: #3ea6ff !important;
    font-weight: 600;
}

.ytn-login-company-footer .ytn-legal-disclaimer {
    max-width: 1100px !important;
    padding: 10px 16px 0 !important;
}
