/* ═══════════════════════════════════════════════════════════════════
   EduPlatform — Apple Account–inspired Login Styles
   Clean, minimal, centered, smooth animations
   ═══════════════════════════════════════════════════════════════════ */

/* ── Base ── */
.login-body {
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    font-family: 'Inter', 'PingFang HK', 'SF Pro Text', 'Helvetica Neue', sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    overflow-y: auto;
}

.login-main {
    width: 100%;
    max-width: 420px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ── Logo Animation ── */
.login-logo-wrap {
    display: flex;
    align-items: center;
    gap: 20px;
}

.login-logo-sig {
    height: 44px;
    width: auto;
}
.login-logo-ci {
    height: 44px;
    width: auto;
}

/* ── Login Card ── */
.login-card {
    width: 100%;
    margin-top: 1.5rem;
}

.login-heading {
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: #1d1d1f;
    text-align: center;
    margin-bottom: 1.5rem;
}

/* ── Error ── */
.login-error {
    background: #fff2f0;
    color: #de3135;
    border-radius: 10px;
    padding: 12px 18px;
    font-size: 0.88rem;
    text-align: center;
    margin-bottom: 1.25rem;
    border: 1px solid #ffd8d6;
}

/* ── Form ── */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* ── Apple-style Input ── */
.apple-input-wrap {
    position: relative;
}

.apple-input {
    width: 100%;
    height: 54px;
    padding: 18px 16px 6px;
    border: 1px solid #d2d2d7;
    border-radius: 12px;
    font-size: 0.95rem;
    font-family: inherit;
    color: #1d1d1f;
    background: #ffffff;
    outline: none;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.apple-input::placeholder {
    color: transparent;
}

.apple-input:focus {
    border-color: #0071e3;
    box-shadow: 0 0 0 4px rgba(0,113,227,0.1);
}

.apple-input:focus + .apple-input-label,
.apple-input:not(:placeholder-shown) + .apple-input-label {
    transform: translateY(-10px) scale(0.78);
    color: #6e6e73;
}

.apple-input:focus + .apple-input-label {
    color: #0071e3;
}

.apple-input-label {
    position: absolute;
    left: 17px;
    top: 18px;
    font-size: 0.68rem;
    color: #86868b;
    pointer-events: none;
    transition: all 0.2s ease;
    transform-origin: left center;
}

/* ── Apple-style Button ── */
.apple-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    height: 50px;
    margin-top: 0.5rem;
    background: #0071e3;
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-size: 0.72rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
    letter-spacing: -0.01em;
}

.apple-btn:hover {
    background: #0077ed;
    box-shadow: 0 4px 16px rgba(0,113,227,0.3);
}

.apple-btn:active {
    transform: scale(0.98);
    background: #0066cc;
}

.apple-btn-arrow {
    transition: transform 0.2s ease;
}
.apple-btn:hover .apple-btn-arrow {
    transform: translateX(3px);
}

/* ── QR Section ── */
.qr-section {
    margin-top: 2rem;
}

.qr-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 1.5rem;
}

.qr-divider::before,
.qr-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #d2d2d7;
}

.qr-divider-text {
    font-size: 0.72rem;
    color: #86868b;
    white-space: nowrap;
    font-weight: 500;
}

.qr-scan-area {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    border: 1.5px solid #d2d2d7;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #fafafc;
}

.qr-scan-area:hover {
    border-color: #0071e3;
    background: #f5f7fc;
    box-shadow: 0 2px 12px rgba(0,113,227,0.08);
}

.qr-icon {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f2;
    border-radius: 12px;
    color: #1d1d1f;
    transition: all 0.2s ease;
}

.qr-scan-area:hover .qr-icon {
    background: #e8f0fe;
    color: #0071e3;
}

.qr-hint {
    font-size: 0.85rem;
    color: #6e6e73;
    line-height: 1.5;
    margin: 0;
}

/* ── Bottom Links ── */
.login-bottom-links {
    margin-top: 2rem;
    text-align: center;
}

.login-bottom-links a {
    font-size: 0.85rem;
    color: #0071e3;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.15s;
}
.login-bottom-links a:hover {
    color: #0077ed;
}

/* ── Responsive ── */
@media (max-width: 480px) {
    .login-main { padding: 1.25rem; }
    .login-heading { font-size: 1.3rem; }
    .login-logo-sig { height: 36px; }
    .login-logo-ci { height: 36px; }
    .login-logo-wrap.moved { transform: translateY(-24px) scale(0.68); }
}
