/* Calm Pro sign-in — split promo/form layout (design_handoff_schoolsoft_login). */

.rda-shell {
    margin: 0;
    font-family: var(--rd-font-ui);
    background: #fff;
    color: var(--rd-body);
    -webkit-font-smoothing: antialiased;
}

.rda-split {
    display: flex;
    min-height: 100vh;
    background: #fff;
}

/* ---- Promo panel ---- */

.rda-promo {
    flex: 1.25;
    background: var(--rd-deep-navy);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 48px 56px;
}

.rda-promo__glow {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.rda-promo__glow--top {
    inset-inline-end: -140px;
    top: -140px;
    width: 420px;
    height: 420px;
    background: rgba(42, 120, 214, .16);
}

.rda-promo__glow--bottom {
    inset-inline-end: 60px;
    bottom: -180px;
    width: 380px;
    height: 380px;
    background: rgba(26, 158, 92, .13);
}

.rda-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
}

.rda-brand__mark {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, #2a78d6, #1a9e5c);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    flex: none;
}

.rda-brand__word {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -.2px;
}

.rda-brand__word em {
    color: #5fd695;
    font-weight: 600;
    font-style: italic;
}

.rda-promo__body {
    position: relative;
    max-width: 520px;
}

.rda-eyebrow {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .1em;
    color: #5fd695;
}

.rda-headline {
    font-size: 38px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -.6px;
    line-height: 1.15;
    margin: 14px 0 0;
    text-wrap: pretty;
}

.rda-subline {
    font-size: 15px;
    color: #9db2ca;
    line-height: 1.6;
    margin-top: 14px;
}

.rda-chips {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 28px;
}

.rda-chip {
    display: flex;
    align-items: center;
    gap: 11px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 12px;
    padding: 13px 15px;
}

.rda-chip__icon {
    width: 30px;
    height: 30px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: none;
}

.rda-chip__icon--green { background: rgba(95, 214, 149, .15); color: #5fd695; }
.rda-chip__icon--blue { background: rgba(74, 158, 234, .15); color: #7db8f0; }
.rda-chip__icon--purple { background: rgba(163, 127, 224, .15); color: #c9aef2; }
.rda-chip__icon--amber { background: rgba(226, 177, 60, .15); color: #e9c86a; }

.rda-chip__label { font-size: 13px; font-weight: 600; color: #e8edf4; }

.rda-trust {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
}

.rda-avatars { display: flex; }

.rda-avatars span {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid var(--rd-deep-navy);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10.5px;
    font-weight: 700;
}

.rda-avatars span + span { margin-inline-start: -8px; }

.rda-trust__text { font-size: 12.5px; color: #9db2ca; }
.rda-trust__text strong { color: #fff; font-weight: 600; }

/* ---- Form panel ---- */

.rda-form-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 48px 72px;
    background: #fff;
}

.rda-logo, 
.rda-brand__logo { height: 50px; width: auto; align-self: flex-start; }

.rda-title {
    font-size: 26px;
    font-weight: 700;
    color: var(--rd-navy);
    letter-spacing: -.4px;
    margin: 34px 0 0;
}

.rda-sub { font-size: 14px; color: var(--rd-muted); margin-top: 6px; }

.rda-form {
    margin-top: 32px;
    max-width: 400px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.rda-field label,
.rda-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--rd-body);
    margin-bottom: 7px;
}

.rda-label-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 7px;
}

.rda-label-row a { font-size: 12px; font-weight: 600; }

.rda-input,
.rda-select {
    width: 100%;
    border: 1px solid #c9d4e0;
    border-radius: 10px;
    padding: 13px 15px;
    font-family: var(--rd-font-ui);
    font-size: 14px;
    color: var(--rd-navy);
    min-height: 46px;
    box-sizing: border-box;
    background: #fff;
    outline: none;
}

.rda-input::placeholder { color: var(--rd-faint); }
.rda-input:hover, .rda-select:hover { border-color: var(--rd-blue); }

.rda-input:focus, .rda-select:focus {
    border-color: var(--rd-blue);
    box-shadow: 0 0 0 3px var(--rd-blue-tint);
}

.rda-input--error { border-color: var(--rd-red); background: var(--rd-red-tint); }

.rda-error { font-size: 12px; color: var(--rd-red); margin-top: 6px; }

/* Password field with show/hide */
.rda-password { position: relative; }

.rda-password .rda-input { padding-inline-end: 46px; }

.rda-password__toggle {
    position: absolute;
    inset-inline-end: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border: 0;
    background: transparent;
    color: var(--rd-faint);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.rda-password__toggle:hover { color: var(--rd-blue); }

/* Keep me signed in */
.rda-check {
    display: flex;
    align-items: center;
    gap: 9px;
    cursor: pointer;
    font-size: 13px;
    color: var(--rd-body);
}

.rda-check input { position: absolute; opacity: 0; width: 0; height: 0; }

.rda-check__box {
    width: 17px;
    height: 17px;
    border-radius: 5px;
    border: 1px solid #c9d4e0;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    color: transparent;
    flex: none;
}

.rda-check input:checked + .rda-check__box {
    background: var(--rd-blue);
    border-color: var(--rd-blue);
    color: #fff;
}

.rda-check input:focus-visible + .rda-check__box { box-shadow: 0 0 0 3px var(--rd-blue-tint); }

/* Buttons */
.rda-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 46px;
    border-radius: 10px;
    border: 1px solid transparent;
    font-family: var(--rd-font-ui);
    font-size: 14.5px;
    font-weight: 700;
    cursor: pointer;
    padding: 14px;
    box-sizing: border-box;
}

.rda-btn--primary { background: var(--rd-blue); color: #fff; }
.rda-btn--primary:hover { background: var(--rd-blue-hover); }

.rda-btn--outline {
    background: #fff;
    border-color: #dfe5ec;
    color: var(--rd-body);
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
}

.rda-btn--outline:hover { border-color: var(--rd-blue); color: var(--rd-blue); }

/* Divider */
.rda-divider { display: flex; align-items: center; gap: 12px; }
.rda-divider span { font-size: 11.5px; color: var(--rd-faint); }
.rda-divider::before, .rda-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--rd-border);
}

.rda-signup { font-size: 13px; color: var(--rd-muted); margin-top: 30px; max-width: 400px; }
.rda-signup a { font-weight: 600; }

.rda-footer { font-size: 11.5px; color: var(--rd-faint); margin-top: 26px; }
.rda-footer a { color: var(--rd-muted); }

/* Flash / alert messages */
.rda-alert {
    max-width: 400px;
    border-radius: 10px;
    padding: 11px 14px;
    font-size: 12.5px;
    margin-top: 18px;
}

.rda-alert--success { background: var(--rd-green-tint); color: var(--rd-green); }
.rda-alert--error { background: var(--rd-red-tint); color: var(--rd-red); }
.rda-alert--info { background: var(--rd-blue-tint); color: var(--rd-blue-text); }

/* ---- Responsive: promo panel collapses to a slim banner ---- */

@media (max-width: 960px) {
    .rda-split { flex-direction: column; min-height: 100vh; }

    .rda-promo {
        flex: none;
        padding: 20px 24px;
        min-height: auto;
    }

    /* The glows are sized for the full-height panel; in the slim banner they
       clip into hard-edged blocks, so drop them with the rest of the promo. */
    .rda-promo__body,
    .rda-promo__glow,
    .rda-trust { display: none; }

    .rda-form-panel { padding: 32px 24px 40px; flex: 1; }
    .rda-form, .rda-signup, .rda-alert { max-width: none; }
    .rda-title { margin-top: 24px; }
}

@media (max-width: 420px) {
    .rda-form-panel { padding: 24px 18px 32px; }
    .rda-headline { font-size: 28px; }
}
