@import url('https://fonts.cdnfonts.com/css/satoshi');
* {
    font-family: Satoshi, sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
    line-height: 1.5;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
div.container {
    max-width:800px;
    margin-left: auto;
    margin-right: auto;
}
body {
    background: url(/images/book_backgrounds/green.webp) no-repeat;
    background-size: cover;
}
header img {
    position: absolute;
    top: 46px;
    left: -14px;
    width: 125px;
    z-index:-1;
    height: 122px;
}
header {
    position: relative;
    padding-top:63px;
    width:100%;
    height:160px;
    display:flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
header h1 {
    font-size:24px;
    line-height:33px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    max-width:190px;
}
@media screen and (min-width: 640px) {
    header h1 {
        max-width:320px;
    }
}
main {
    background-color:white;
    padding:24px;
    box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.1);
    
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
    
    min-height:calc(100dvh - 160px);
}
main h2 {
    margin-bottom:24px;
}

/* ===== Parents form component styles ===== */
.form--parents {
    --form-input-bg: #f5f5f5;
    --form-input-placeholder: #8e8e93;
    --form-input-text: #1c1c1e;
    --form-radius: 14px;
    --form-primary: #F9902B;
    --form-primary-hover: #e07e1f;
    --form-text: #3a3a3c;
    --form-text-muted: #8e8e93;
    --form-link: #8e8e93;
    --form-spacing: 1rem;
}

.form--parents .form-group {
    margin-bottom: var(--form-spacing);
}

.form--parents .form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--form-text);
    margin-bottom: 0.375rem;
}

.form--parents .form-control {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    font-family: inherit;
    color: var(--form-input-text);
    background-color: var(--form-input-bg);
    border: none;
    border-radius: var(--form-radius);
    -webkit-appearance: none;
    appearance: none;
}

.form--parents .form-control::placeholder {
    color: var(--form-input-placeholder);
}

.form--parents .form-control:focus {
    outline: none;
    box-shadow: 0 0 0 2px var(--form-primary);
}

.form--parents .form-row {
    display: flex;
    gap: 0.75rem;
}

.form--parents .form-row .form-group {
    flex: 1;
    margin-bottom: var(--form-spacing);
}

.form--parents .btn--primary,
.form--parents .form-submit.btn--primary {
    display: block;
    width: 100%;
    padding: 0.875rem 1rem;
    text-decoration: none;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    font-family: inherit;
    color: #fff;
    background: var(--form-primary);
    border: none;
    border-radius: var(--form-radius);
    cursor: pointer;
    margin-top: 0.5rem;
}

.form--parents .btn--primary:hover,
.form--parents .form-submit.btn--primary:hover {
    background: var(--form-primary-hover);
}

.form--parents .form-legal {
    font-size: 0.8125rem;
    color: var(--form-text-muted);
    margin: var(--form-spacing) 0;
    line-height: 1.4;
    text-align: center;
}
.top-help {
    color: var(--form-text-muted);
    margin: var(--form-spacing) 0;
    line-height: 1.4;
    text-align:center;
}

.form--parents .form-legal a {
    color: var(--form-link);
    text-decoration: underline;
}

.form--parents .form-footer {
    margin-top: var(--form-spacing);
    font-size: 0.9375rem;
    text-align: center;
    color:black;
    
}

.form--parents .form-footer a {
    text-decoration: underline;
    font-weight: bold;
    color:inherit;
}

/* Checkbox (circular check on dark when checked) */
.form--parents .form-check {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: var(--form-spacing);
}

.form--parents .form-check-input {
    width: 1.25rem;
    height: 1.25rem;
    margin-top: 0.2rem;
    flex-shrink: 0;
    border-radius: 50%;
    border: 2px solid #ccc;
    background: #fff;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

.form--parents .form-check-input:checked {
    background: #1c1c1e;
    border-color: #1c1c1e;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
}

.form--parents .form-check-label {
    font-size: 0.9375rem;
    color: var(--form-text);
    line-height: 1.4;
}

.form--parents .form-check-label .form-check-desc {
    display: block;
    font-size: 0.8125rem;
    color: var(--form-text-muted);
    font-weight: 400;
}

/* Dark form variant (e.g. signup on dark background) */
.form--parents.form--dark {
    --form-input-bg: #2c2c2e;
    --form-input-placeholder: #8e8e93;
    --form-input-text: #fff;
    --form-text: #e5e5ea;
    --form-text-muted: #8e8e93;
    --form-link: #aeaeb2;
}

.form--parents.form--dark .form-control {
    background-color: var(--form-input-bg);
    color: var(--form-input-text);
}
.alert.alert-danger {
    color: red; 
    font-weight: bold;
}
.forgot-password-group {
    margin-top:12px;
    margin-bottom:12px;
    text-align: center;
}
.forgot-password-group a {
    text-decoration: none;
    display: block;
    color:black;
    font-weight: bold;
    margin-top: 10px;
    text-decoration: underline;
    text-align:right;
}
.icon {
    background-size: 24px;
    background-position: left 12px center;
    background-repeat: no-repeat;
    padding-left: 44px !important;
}
.icon-phone {
    background-image: url(/images/phone24.svg);
}
.icon-password {
    background-image: url(/images/password24.svg);
}
.icon-email {
    background-image: url(/images/email24.svg);
}
.icon-calendar {
    background-image: url(/images/calendar24.svg);
}
.icon-school {
    background-image: url(/images/school24.svg);
}

.form-errors {
    list-style: none;
    padding: 10px 16px;
    margin: 0 auto 16px auto;
    max-width: 480px;
    font-weight: bold;
    background-color: #FFEBED;
    color: #EF434A;
    border-radius: 16px;
    text-align: center;
}
.form-errors li + li {
    margin-top: 4px;
}

.add-student-main .add-student-steps {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 16px;
}
.add-student-main .step-dot {
    width: 16px;
    height: 8px;
    border-radius: 999px;
    background-color: #D9D9D9;
}
.add-student-main .step-dot.step-dot--active {
    background-color: #F9902B;
}

.visual-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 16px 0 24px;
}

.visual-card {
    display: flex;
    align-items: center;
    padding: 16px 18px;
    border-radius: 16px;
    background-color: #F5F5F5;
}

.visual-card-icon {
    flex: 0 0 auto;
    margin-right: 12px;
}

.visual-card-icon img {
    width: 40px;
    height: 40px;
}

.visual-card-content {
    flex: 1 1 auto;
}

.visual-card-title {
    margin: 0 0 4px;
    font-size: 16px;
    font-weight: 600;
    color: #222222;
}

.visual-card-text {
    margin: 0;
    font-size: 13px;
    line-height: 1.4;
    color: #555555;
}

.visual-card-toggle {
    flex: 0 0 auto;
    margin-left: 12px;
    display: flex;
    align-items: center;
}

.visual-toggle {
    width: 20px;
    height: 20px;
}

.form--parents .phone-input {
    position: relative;
    padding-top:0;
    padding-bottom:0;
}
.form--parents .phone-input input {
    width: calc(100% - 70px);
    padding-top:16px;
    padding-left:12px;
    margin-left:70px;
    font-size:16px;
    padding-bottom:16px;
    background-color: transparent;
    border: none;
}

.form--parents .phone-input .form-select {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 106px;
    border: none;
    background: transparent;
    padding: 0;
    padding-left:40px;
    font-size: 0.875rem;
    color: var(--form-input-text);
    border-top-left-radius: var(--form-radius);
    border-bottom-left-radius: var(--form-radius);
    -webkit-appearance: none;
    appearance: none;
}

.form--parents .phone-input .icon-phone {
    padding-left: calc(88px + 44px) !important;
    background-position: left calc(88px + 12px) center;
}

/* ===== Login tabs (parents login) ===== */
.login-tabs {
    display: flex;
    justify-content: center;
    gap: 0;
    margin: 0 0 0;
}

.login-tab {
    flex: 1;
    border: none;
    background: #f2f2f7;
    padding: 10px 18px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #8e8e93;
    cursor: pointer;
    border-radius: 20px 20px 0 0;
}
.login-tabs + main {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}
@media screen and (min-width: 480px) {
    .login-tab {
        max-width: 190px;
    }
    .login-tabs + main {
        border-top-left-radius: 24px;
        border-top-right-radius: 24px;
    }
}

.login-tab--active {
    color: #FF712D;
    background: #ffffff;
}

.enter-code-view {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 1rem;
}

/* Link student QR scanner */
#link-qr .qr-scanner-wrap {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin-top: 1rem;
}
#link-qr-scanner {
    width: 100%;
    max-width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}
#link-qr-scanner video,
#link-qr-scanner canvas {
    width: 100% !important;
    max-width: 100%;
    max-height: 50vh;
}

main #login-email h2,
main #login-phone h2 {
    margin-bottom: 16px;
}

.forgot-password-group a {
    font-weight: 500;
    font-size: 0.9rem;
    color: #8e8e93;
    text-decoration: none;
}

.forgot-password-group a:hover {
    text-decoration: underline;
}

/* OTP input with overlaid Send OTP button */
.otp-group {
    position: relative;
}

.otp-group .form-control {
    padding-right: 110px;
}

.otp-send-button {
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    border: none;
    border-radius: 20px;
    padding: 6px 12px;
    font-size: 0.8rem;
    font-weight: 600;
    background-color: #FF712D;
    color: #ffffff;
    cursor: pointer;
}

.otp-send-button:disabled {
    opacity: 0.6;
    cursor: default;
}
.help-block {
    max-width:375px;
    width:100%;
    margin: 0 auto;
    display: block;
    margin-top:24px;
}
#code-input {
    width:100%;
    font-size:32px;
    text-align:center;
}
.virtual-card-preview {
    margin-left:auto;
    margin-right:auto;
    display:block;
    width:290px;
    margin-top:24px;
    margin-bottom:24px;
}
.profile-school-message-centered {
    text-align:center;
}
.text-center {
    text-align:center;
}