/* Student login — centered card (mockup style) */
:root {
    --sl-cream: #f7efe3;
    --sl-peach: #f3d9b8;
    --sl-orange-soft: #efc59a;
    --sl-card: #ffffff;
    --sl-ink: #1a1a1a;
    --sl-muted: #9a9a9a;
    --sl-field: #f3f3f3;
    --sl-btn: #f5e6b8;
    --sl-btn-hover: #efd98a;
    --sl-link: #d4a017;
    --sl-danger: #c62828;
    --sl-danger-bg: #ffebee;
}

* {
    box-sizing: border-box;
}

html,
body.sl-page {
    margin: 0;
    min-height: 100%;
}

body.sl-page {
    font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
    color: var(--sl-ink);
    background:
        radial-gradient(ellipse 80% 50% at 50% 0%, rgba(255, 220, 160, 0.55), transparent 60%),
        linear-gradient(180deg, #faf3e8 0%, var(--sl-cream) 40%, var(--sl-peach) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px 16px;
}

.sl-shell {
    width: 100%;
    max-width: 420px;
}

.sl-card {
    background: var(--sl-card);
    border-radius: 22px;
    padding: 36px 32px 28px;
    box-shadow: 0 18px 50px rgba(120, 80, 30, 0.12);
    text-align: center;
}

.sl-hero {
    position: relative;
    width: 150px;
    height: 130px;
    margin: 0 auto 18px;
}

.sl-hero__glow {
    position: absolute;
    left: 50%;
    top: 42%;
    width: 110px;
    height: 110px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 214, 100, 0.55) 0%, rgba(255, 214, 100, 0) 70%);
    pointer-events: none;
}

.sl-hero svg {
    position: relative;
    z-index: 1;
    width: 140px;
    height: auto;
    display: block;
    margin: 0 auto;
}

.sl-card h1 {
    margin: 0 0 22px;
    font-size: 1.85rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--sl-ink);
}

.sl-alert {
    text-align: left;
    background: var(--sl-danger-bg);
    color: var(--sl-danger);
    border-radius: 12px;
    padding: 10px 12px;
    font-size: 0.88rem;
    margin-bottom: 14px;
}

.sl-form {
    text-align: left;
}

.sl-field {
    margin-bottom: 12px;
}

.sl-field label {
    display: none;
}

.sl-field input,
.sl-field select {
    width: 100%;
    height: 50px;
    border: 0;
    border-radius: 12px;
    background: var(--sl-field);
    padding: 0 16px;
    font: inherit;
    font-size: 0.95rem;
    color: var(--sl-ink);
    outline: none;
    appearance: none;
    -webkit-appearance: none;
}

.sl-field select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%999' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 36px;
}

.sl-field input::placeholder {
    color: var(--sl-muted);
}

.sl-field input:focus,
.sl-field select:focus {
    box-shadow: 0 0 0 2px rgba(212, 160, 23, 0.35);
}

.sl-field select:invalid {
    color: var(--sl-muted);
}

.sl-field select option {
    color: var(--sl-ink);
}

.sl-submit {
    width: 100%;
    height: 50px;
    margin-top: 8px;
    border: 0;
    border-radius: 12px;
    background: var(--sl-btn);
    color: var(--sl-ink);
    font: inherit;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
}

.sl-submit:hover {
    background: var(--sl-btn-hover);
    transform: translateY(-1px);
}

.sl-footer-link {
    display: inline-block;
    margin-top: 16px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--sl-link);
    text-decoration: none;
}

.sl-footer-link:hover {
    text-decoration: underline;
}

.sl-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 22px;
    color: #cfcfcf;
}

.sl-divider::before,
.sl-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #e6e6e6;
}

.sl-divider span {
    font-size: 10px;
    letter-spacing: 0.2em;
}

.sl-meta {
    margin-top: 14px;
    font-size: 0.78rem;
    color: #888;
    line-height: 1.45;
}

.sl-meta a {
    color: var(--sl-link);
    text-decoration: none;
    font-weight: 600;
}

@media (max-width: 480px) {
    .sl-card {
        padding: 28px 20px 22px;
        border-radius: 18px;
    }

    .sl-card h1 {
        font-size: 1.55rem;
    }
}
