/**
 * Lehrer-Login Styles — schulunterricht.ch
 */
@import url('shared.css');

/* ─── Layout ─── */
body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem 1rem;
}

/* ─── Login-Box ─── */
.login-box {
    position: relative;
    z-index: 1;
    background: rgba(255,255,255,0.65);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.8);
    border-radius: 24px;
    padding: 3rem 2.5rem;
    max-width: 440px;
    width: 100%;
    text-align: center;
    animation: fadeUp 0.6s ease-out;
}
.login-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--blue), var(--cyan));
    border-radius: 24px 24px 0 0;
}

.back { display: inline-flex; align-items: center; gap: 0.3rem; font-size: 0.9rem; color: var(--text-soft); text-decoration: none; margin-bottom: 1.5rem; transition: color 0.2s; }
.back:hover { color: var(--text); }
.back svg { width: 16px; height: 16px; }

.l-icon { width: 56px; height: 56px; border-radius: 14px; background: rgba(0,0,0,0.03); display: flex; align-items: center; justify-content: center; margin: 0 auto 1.2rem; }
.l-icon svg { width: 28px; height: 28px; color: var(--blue); }
.l-title { font-family: 'DM Serif Display', serif; font-size: clamp(1.4rem, 3vw, 1.6rem); font-weight: 400; margin-bottom: 0.4rem; }
.l-sub { font-size: 0.95rem; color: var(--text-soft); margin-bottom: 2rem; }

.fg { text-align: left; margin-bottom: 1.2rem; }
.fg label { display: block; font-size: 0.85rem; font-weight: 500; color: var(--text-soft); margin-bottom: 0.4rem; }
.fg input { width: 100%; padding: 0.9rem 1rem; border: 1.5px solid rgba(0,0,0,0.08); border-radius: 12px; font-family: inherit; font-size: 1rem; background: rgba(255,255,255,0.8); color: var(--text); outline: none; transition: border-color 0.2s, box-shadow 0.2s; }
.fg input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 8%, transparent); }

.err { background: rgba(255,100,100,0.08); border: 1px solid rgba(255,100,100,0.2); color: #C0392B; font-size: 0.95rem; padding: 0.6rem 1rem; border-radius: 10px; margin-bottom: 1rem; }

.btn { width: 100%; padding: 0.9rem; border: none; border-radius: 12px; background: var(--blue); color: #fff; font-family: inherit; font-size: 0.95rem; font-weight: 500; cursor: pointer; transition: opacity 0.2s, transform 0.2s; }
.btn:hover { opacity: 0.9; transform: translateY(-1px); }

.fg-row { display: flex; gap: 0.8rem; }
.fg-row .fg { flex: 1; }

@media (max-width: 480px) {
    .fg-row { flex-direction: column; gap: 0; }
    .login-box { padding: 2.5rem 1.5rem; }
}
