/* Tonkla LMS — Login · Student-Friendly Edition */

.tonkla-login-wrapper {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 60px 20px;
    font-family: 'Nunito', 'Segoe UI', system-ui, sans-serif;
    color: #1e293b;
    min-height: 100vh;
    background: linear-gradient(145deg, #f0fdf8 0%, #ecfdf5 30%, #f0f9ff 60%, #fefce8 100%);
    background-image:
        radial-gradient(circle at 1px 1px, rgba(13,148,136,0.04) 1px, transparent 0),
        linear-gradient(145deg, #f0fdf8 0%, #ecfdf5 30%, #f0f9ff 60%, #fefce8 100%);
    background-size: 30px 30px, 100% 100%;
}

.tonkla-login-card {
    width: 100%;
    max-width: 400px;
    background: #fff;
    border: 2px solid rgba(13,148,136,0.1);
    border-radius: 20px;
    padding: 40px 34px;
    box-shadow: 0 8px 32px rgba(13,148,136,0.08), 0 2px 8px rgba(0,0,0,0.04);
    animation: loginCardIn 0.5s cubic-bezier(.34,1.56,.64,1);
    position: relative;
    overflow: hidden;
}
.tonkla-login-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 5px;
    background: linear-gradient(90deg, #0d9488, #2dd4bf, #38bdf8, #8b5cf6, #f97066);
    border-radius: 20px 20px 0 0;
}

@keyframes loginCardIn {
    from { transform: translateY(20px) scale(0.96); opacity: 0; }
    to { transform: translateY(0) scale(1); opacity: 1; }
}

.tonkla-login-header {
    text-align: center;
    margin-bottom: 28px;
    padding-top: 8px;
}

.tonkla-login-logo {
    display: block;
    max-height: 48px;
    max-width: 180px;
    margin: 0 auto 14px;
    object-fit: contain;
}

.tonkla-login-title {
    font-family: 'Baloo 2', 'Nunito', cursive;
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 4px;
    color: #0f766e;
}

.tonkla-login-subtitle {
    font-size: 14px;
    color: #64748b;
    margin: 0;
    font-weight: 500;
}

/* Alerts */
.tonkla-login-alert {
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 18px;
}

.tonkla-login-alert-error {
    background: rgba(239,68,68,0.08);
    color: #dc2626;
    border: 2px solid rgba(239,68,68,0.15);
}

.tonkla-login-alert-success {
    background: rgba(16,185,129,0.08);
    color: #059669;
    border: 2px solid rgba(16,185,129,0.15);
}

/* Form */
.tonkla-login-form .tonkla-form-group { margin-bottom: 18px; }

.tonkla-login-form label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #374151;
    margin-bottom: 6px;
}

.tonkla-login-form input[type="text"],
.tonkla-login-form input[type="password"] {
    display: block;
    width: 100%;
    height: 48px;
    padding: 0 16px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 15px;
    font-family: 'Nunito', sans-serif;
    font-weight: 500;
    color: #1e293b;
    background: #fff;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.tonkla-login-form input[type="text"]:focus,
.tonkla-login-form input[type="password"]:focus {
    outline: none;
    border-color: #0d9488;
    box-shadow: 0 0 0 4px rgba(13,148,136,0.15);
}

/* Remember me */
.tonkla-login-form .tonkla-form-row { margin-bottom: 22px; }

.tonkla-login-form .tonkla-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
}

.tonkla-login-form .tonkla-checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: #0d9488;
    border-radius: 4px;
}

/* Submit */
.tonkla-login-btn {
    display: block;
    width: 100%;
    height: 50px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #0d9488, #14b8a6);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    font-family: 'Nunito', sans-serif;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(13,148,136,0.3);
    transition: all 0.25s cubic-bezier(.34,1.56,.64,1);
}

.tonkla-login-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(13,148,136,0.35);
    background: linear-gradient(135deg, #0f766e, #0d9488);
}

.tonkla-login-btn:active {
    transform: translateY(0) scale(0.98);
}

@media (max-width: 480px) {
    .tonkla-login-card { padding: 32px 22px; border-radius: 16px; }
    .tonkla-login-wrapper { padding: 40px 16px; }
}
