Firstly we will show that the triangle is acute. Indeed, suppose that ∠BAC≥90∘. Then ∠ACB≤45∘=∠ABC<∠AA1C. From △AA1C we get that AC>AA1. From the other side
∠C1AC≥90∘, then in △AC1C the side CC1 is the longest, in particular, CC1>AC. Hence CC1>AC; CC1>AC>AA1, contradiction.
Let AA1 and CC1 intersect at O. Consider a circle with diameter AC, then O lies on it (fig. 10).

Fig. 10
This circle intersect AB,BC at P,Q respectively. The points P and Q lies inside the sides of △ABC because the triangle is acute. Notice also that since AA1 and CC1 are cevians, O lies inside △ABC, in other words, on the arc PQ of the latter circle. We will prove that ∠A1AQ=∠QAC. If it is true △CAA1 is isosceles, because AQ is angle bisector and altitude in it and so A1A=AC. Indeed, suppose that ∠A1AQ=β>α=∠QAC. Then A1A>AC. Obviously, ∠PBC=∠BAQ=45∘. Then
∠PCC1=45∘−∠OCQ=45∘−∠OAQ=45∘−β.
Also ∠PCA=90∘−∠PAC=45∘−α. Since β>α, we have 45∘−β<45∘−α, so ∠C1CP<∠PCA, hence CC1<AC. But A1A>AC, so CC1<AA1 - contradiction. The case β<α is considered analogously.
Alternative solution. Denote ∠C1CB=α, ∠A1AB=β. Then since ∠OCA+α+∠OAC+β=135∘ and ∠OCA+∠OAC=90∘, so α+β=45∘ (fig. 11).

Fig. 11
We can assume that AA1=CC1=1. Denote OC1=p, OA1=q, then OC=1−p, OA=1−q. Since tanα=1−pp and tanβ=1−qq, rewrite the condition α+β=45∘ as tan(α+β)=1 or
tan(α+β)=1−tanαtanβtanα+tanβ=1−1−pp1−qq1−pp+1−qq==(1−p)(1−q)−pqq−q2+p−p2=1−p−qq+p−(q2+p2)=1,
so p2+q2−2p−2q+1=0. Now we have that
AC2=(1−p)2+(1−q)2=2−2p−2q+p2+q2=1=AA12
and we are done.