/* Login, forgot password, reset password and verification pages (resources/views/backend/*). Loaded only there.
   Smarty Ears brand: coral #F16B68, blue #3C9BD5, ink #202B46. */
.make-account,
.make-account .centralize-inner {
    background: linear-gradient(135deg, #eef6fc 0%, #ffffff 55%, #fdf0ee 100%);
}

.sel {
    --sel-blue: #3C9BD5;
    --sel-blue-dark: #2B7FB8;
    --sel-coral: #F16B68;
    --sel-coral-dark: #e2524f;
    --sel-ink: #202B46;
    --sel-text: #43566a;
    --sel-muted: #5f7387;
    --sel-line: #d7e3ee;
    font-family: Inter, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    color: var(--sel-text);
    max-width: 440px;
    margin: 24px auto;
    -webkit-font-smoothing: antialiased;
}

.sel * {
    box-sizing: border-box;
}

.sel-card {
    background: #fff;
    border: 1px solid #e3ebf2;
    border-radius: 24px;
    box-shadow: 0 24px 50px rgba(32, 43, 70, .10);
    padding: 36px 36px 28px;
}

.sel-logo {
    display: block;
    width: 150px;
    margin: 0 auto 18px;
}

.sel-logo img {
    display: block;
    width: 100%;
    height: auto;
}

.sel h1 {
    font-family: inherit;
    font-size: 26px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -.3px;
    color: var(--sel-ink);
    text-align: center;
    margin: 0 0 6px;
    padding: 0;
}

.sel-sub {
    font-size: 15px;
    text-align: center;
    color: var(--sel-muted);
    margin: 0 0 26px;
}

.sel-field {
    margin: 0 0 16px;
}

.sel label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: var(--sel-ink);
    margin: 0 0 6px;
}

.sel-label-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
}

.sel-label-row a {
    font-size: 13.5px;
    font-weight: 600;
}

.sel a {
    color: var(--sel-blue-dark);
    text-decoration: none;
}

.sel a:hover {
    color: var(--sel-coral-dark);
    text-decoration: underline;
}

.sel input[type="email"],
.sel input[type="text"],
.sel input[type="password"] {
    display: block;
    width: 100%;
    height: 48px;
    padding: 0 14px;
    font-family: inherit;
    font-size: 16px;
    color: var(--sel-ink);
    background: #fff;
    border: 1.5px solid var(--sel-line);
    border-radius: 12px;
    transition: border-color .15s, box-shadow .15s;
}

.sel input:focus {
    outline: 0;
    border-color: var(--sel-blue);
    box-shadow: 0 0 0 4px rgba(60, 155, 213, .16);
}

.sel input.is-invalid {
    border-color: #d93a36;
}

.sel-error {
    display: block;
    margin-top: 6px;
    font-size: 13.5px;
    color: #c0322f;
}

.sel-password {
    position: relative;
}

.sel-password input {
    padding-right: 76px !important;
}

.sel-toggle {
    position: absolute;
    top: 6px;
    right: 6px;
    height: 36px;
    padding: 0 12px;
    border: 0;
    border-radius: 9px;
    background: #eef6fc;
    color: var(--sel-blue-dark);
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
}

.sel-toggle:hover,
.sel-toggle:focus {
    background: #dcecf8;
    outline: 0;
}

.sel-toggle:focus-visible {
    box-shadow: 0 0 0 3px rgba(60, 155, 213, .35);
}

.sel-remember {
    display: flex !important;
    align-items: center;
    gap: 10px;
    margin: 4px 0 20px !important;
    font-weight: 500 !important;
    color: var(--sel-text) !important;
    cursor: pointer;
}

.sel-remember input {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: var(--sel-coral);
}

.sel-btn {
    display: block;
    width: 100%;
    height: 50px;
    border: 0;
    border-radius: 999px;
    background: var(--sel-coral);
    color: #fff;
    font-family: inherit;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 12px 26px rgba(241, 107, 104, .30);
    transition: background-color .15s, transform .15s;
}

.sel-btn:hover {
    background: var(--sel-coral-dark);
    transform: translateY(-1px);
}

.sel-btn:focus-visible {
    outline: 3px solid rgba(60, 155, 213, .5);
    outline-offset: 2px;
}

.sel-btn:disabled {
    opacity: .75;
    cursor: wait;
    transform: none;
}

.sel-or {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 22px 0;
    font-size: 13px;
    color: var(--sel-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sel-or::before,
.sel-or::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #e3ebf2;
}

.sel-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    height: 48px;
    border: 1.5px solid var(--sel-line);
    border-radius: 999px;
    background: #fff;
    color: #1f1f1f !important;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none !important;
    transition: border-color .15s, box-shadow .15s;
}

.sel-google:hover {
    border-color: var(--sel-blue);
    box-shadow: 0 6px 16px rgba(32, 43, 70, .08);
}

.sel-links {
    margin: 24px 0 0;
    padding: 18px 0 0;
    border-top: 1px solid #e3ebf2;
    text-align: center;
    font-size: 14px;
}

.sel-links p {
    margin: 0 0 8px;
}

.sel-links a {
    font-weight: 700;
}

.sel-help {
    text-align: center;
    font-size: 14px;
    color: var(--sel-muted);
    margin: 18px 0 0;
}

@media (max-width: 575px) {
    .sel {
        margin: 8px auto;
    }

    .sel-card {
        padding: 28px 20px 22px;
        border-radius: 20px;
    }

    .sel h1 {
        font-size: 22px;
    }

    .sel-logo {
        width: 120px;
    }
}

/* The old headerless.css colours #login-button dark pink by id; keep the brand coral. */
#login-button.sel-btn {
    background-color: var(--sel-coral);
}

#login-button.sel-btn:hover {
    background-color: var(--sel-coral-dark);
}

/* These pages show messages inside the card instead of the full-screen pop-up. */
.flash-message {
    display: none !important;
}

.sel-alert {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin: 0 0 20px;
    padding: 14px 16px;
    border-radius: 14px;
    font-size: 14.5px;
    line-height: 1.5;
    text-align: left;
    animation: sel-alert-in .25s ease-out;
}

@keyframes sel-alert-in {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: none; }
}

.sel-alert-icon {
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 800;
    color: #fff;
    margin-top: 1px;
}

.sel-alert-body p {
    margin: 6px 0 0;
}

.sel-alert-body a {
    font-weight: 700;
    text-decoration: underline;
}

.sel-alert-error {
    background: #fdf0ee;
    border: 1px solid #f6c9c6;
    color: #8f2b28;
}

.sel-alert-error .sel-alert-icon {
    background: var(--sel-coral);
}

.sel-alert-error a {
    color: #8f2b28 !important;
}

.sel-alert-success {
    background: #ecf8f0;
    border: 1px solid #bfe5cc;
    color: #1f6b3a;
}

.sel-alert-success .sel-alert-icon {
    background: #2f9e5b;
}

.sel-alert-success a {
    color: #1f6b3a !important;
}

.sel-alert-warning {
    background: #eef6fc;
    border: 1px solid #c8e1f3;
    color: #1f5a85;
}

.sel-alert-warning .sel-alert-icon {
    background: var(--sel-blue);
    font-style: italic;
    font-family: Georgia, serif;
}

.sel-alert-warning a {
    color: #1f5a85 !important;
}

.sel-hint {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    color: var(--sel-muted);
}

.sel-back {
    margin: 22px 0 0;
    text-align: center;
    font-size: 14px;
}

.sel-back a {
    font-weight: 700;
}

.sel-steps {
    list-style: none;
    margin: 0 0 22px;
    padding: 14px 16px;
    background: #f6fafd;
    border-radius: 14px;
    font-size: 14px;
    line-height: 1.5;
}

.sel-steps li {
    position: relative;
    padding-left: 28px;
    margin: 0 0 6px;
}

.sel-steps li:last-child {
    margin: 0;
}

.sel-steps b {
    position: absolute;
    left: 0;
    top: 1px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--sel-blue);
    color: #fff;
    font-size: 11.5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Student and family login: the duck under the logo, and the "ask your therapist" note. */
.sel-mascot {
    display: block;
    width: 130px;
    height: auto;
    margin: -6px auto 10px;
}

.sel-note {
    text-align: center;
    font-size: 14px;
    line-height: 1.5;
    color: var(--sel-muted);
    margin: 18px 0 0;
}

@media (max-width: 575px) {
    .sel-mascot {
        width: 110px;
    }
}
