/* Login and register screens of the student app (pages/login.php, pages/register.php). */

.ed-auth { padding-top: 20px; }
.ed-auth-head { margin-bottom: 20px; text-align: center; }
.ed-auth-head .ed-auth-emoji { margin-bottom: 6px; font-size: 44px; line-height: 1.2; }
.ed-auth-head h2 { margin-bottom: 4px; font-size: 21px; font-weight: 700; }
.ed-auth-head .ed-badge { margin-top: 10px; padding: 5px 12px; font-size: 13px; white-space: normal; }

.ed-auth .ed-auth-message { margin: 0 0 14px; }
.ed-auth .ed-card { padding: 20px; }
.ed-auth .ed-field input { font-size: 15px; }
.ed-auth-required { color: var(--ed-danger); }
.ed-auth-optional { font-size: 12px; font-weight: 400; color: var(--ed-text-muted); }
.ed-auth-foot { margin-top: 18px; font-size: 14px; text-align: center; color: var(--ed-text-muted); }
.ed-auth-foot a, .ed-auth-link { font-weight: 600; }
.ed-auth-under { margin-top: 14px; font-size: 13px; text-align: center; }

/* "Continue with Google / Facebook": the providers' own colours, not the site's. */
.ed-social { display: flex; flex-direction: column; gap: 10px; }
.ed-social .ed-social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 10px 16px;
    border: 1.5px solid transparent;
    border-radius: var(--ed-radius-sm);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
    text-align: center;
}
.ed-social .ed-social-btn svg { flex-shrink: 0; }
.ed-social .ed-social-google { border-color: #DADCE0; background: #FFFFFF; color: #1F1F1F; }
.ed-social .ed-social-google:active { background: #F1F3F4; }
.ed-social .ed-social-facebook { background: #1877F2; color: #FFFFFF; }
.ed-social .ed-social-facebook:active { background: #1464CF; }

.ed-auth-divider { display: flex; align-items: center; gap: 12px; margin: 16px 0; font-size: 13px; color: var(--ed-text-muted); }
.ed-auth-divider::before, .ed-auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--ed-border); }

/* Code entry (registration check, login with a code) */
.ed-auth-step-title { margin-bottom: 6px; font-size: 17px; font-weight: 700; }
.ed-auth-step-title i { color: var(--ed-primary); }
.ed-auth-step-hint { margin-bottom: 14px; font-size: 14px; color: var(--ed-text-muted); }
.ed-auth-step-hint strong { color: var(--ed-text); white-space: nowrap; }
.ed-auth .ed-auth-code {
    padding: 13px 8px;
    font-size: 22px;
    font-weight: 600;
    letter-spacing: 8px;
    text-align: center;
}
.ed-auth-note { margin-top: 8px; font-size: 13px; color: var(--ed-text-muted); }
.ed-auth-note.is-ok { color: var(--ed-success); }
.ed-auth-note.is-error { color: var(--ed-danger); }
.ed-auth-again { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 16px; margin-top: 14px; font-size: 13px; color: var(--ed-text-muted); }
.ed-auth-again button { padding: 4px 0; border: 0; background: none; font-size: 13px; font-weight: 600; color: var(--ed-primary); }
.ed-auth-again button:disabled { color: var(--ed-text-muted); cursor: default; }

.ed-auth-spin {
    display: inline-block;
    width: 15px;
    height: 15px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    vertical-align: -2px;
    animation: ed-auth-spin 0.7s linear infinite;
}
@keyframes ed-auth-spin { to { transform: rotate(360deg); } }
