/* =========================================================
   Teachers Login – Full Redesign (Modern Academic + RTL)
   ========================================================= */

:root{
  --navy:#00254e;
  --navy2:#001b3a;
  --gold:#ecb200;

  --bg:#f4f6fb;
  --card:#ffffff;
  --text:#1f2a37;
  --muted:#6b7a88;

  --border: rgba(15,23,42,.14);
  --shadow: 0 18px 42px rgba(0,0,0,.10);
  --shadow2: 0 10px 26px rgba(0,0,0,.08);
}

/* Page wrapper */
.tl-page{
  direction: rtl;
  text-align: right;
  position: relative;
  background: var(--bg);
  padding: 34px 0 62px;
}

/* Background layers */
.tl-bg{
  position:absolute;
  inset:0;
  pointer-events:none;
  background:
    radial-gradient(900px 360px at 82% 18%, rgba(0,37,78,.08), transparent 58%),
    radial-gradient(820px 320px at 18% 85%, rgba(236,178,0,.10), transparent 55%);
}

/* Container spacing (don’t fight your theme) */
.tl-container{
  position: relative;
  z-index: 1;
}

/* Shell layout */
.tl-shell{
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 18px;
  align-items: stretch;
}

/* Mobile: stack */
@media (max-width: 992px){
  .tl-shell{
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .tl-page{
    padding: 22px 0 48px;
  }
}

/* Brand panel */
.tl-brand{
  background: linear-gradient(180deg, rgba(0,37,78,.10), rgba(255,255,255,.65));
  border: 1px solid rgba(0,37,78,.12);
  border-radius: 18px;
  box-shadow: var(--shadow2);
  overflow: hidden;
}

.tl-brand-inner{
  padding: 22px 20px;
}

.tl-badge{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(0,0,0,.06);
  color: var(--navy);
  font-weight: 800;
  font-size: 13px;
}

.tl-badge-dot{
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(236,178,0,.18);
}

.tl-title{
  margin: 14px 0 6px;
  font-size: 30px;
  font-weight: 900;
  color: var(--navy);
  letter-spacing: .2px;
}

.tl-desc{
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
  max-width: 46ch;
}

.tl-points{
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
  display: grid;
  gap: 10px;
}

.tl-points li{
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  font-size: 14px;
}

.tl-points i{
  color: var(--gold);
  font-size: 16px;
}

.tl-illus{
  margin-top: 18px;
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 16px;
  padding: 18px;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 220px;
}

.tl-illus img{
  max-width: 260px;
  width: 100%;
  height: auto;
  opacity: .95;
}

/* Card panel */
.tl-card{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}

.tl-card::before{
  content:"";
  position:absolute;
  inset:0 0 auto 0;
  height: 5px;
  background: linear-gradient(90deg, var(--navy), var(--gold));
}

.tl-card-head{
  padding: 22px 20px 12px;
  background: linear-gradient(180deg, rgba(0,37,78,.06), transparent);
}

.tl-card-title{
  margin: 0;
  color: var(--navy);
  font-weight: 900;
  font-size: 22px;
}

.tl-card-sub{
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.tl-card-body{
  padding: 16px 20px 22px;
}

/* Form RTL enforcement */
.tl-form{
  direction: rtl;
  text-align: right;
}

/* Fields */
.tl-field{
  margin-bottom: 14px;
}

.tl-label{
  display: block;
  margin-bottom: 8px;
  color: var(--navy);
  font-weight: 900;
  font-size: 14.5px;
}

/* Input wrapper for icons inside */
.tl-input-wrap{
  position: relative;
}

/* Icon inside input (RIGHT side for RTL) */
.tl-inicon{
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(31,42,55,.46);
  font-size: 15px;
  pointer-events: none;
}

/* The input itself */
.tl-input{
  height: 50px;
  border-radius: 14px;
  border: 1px solid rgba(15,23,42,.18);
  background: #fff;

  direction: rtl;
  text-align: right;
  font-size: 15.5px;

  padding-right: 44px; /* room for icon */
  padding-left: 44px;  /* room for eye button */

  transition: border-color .18s ease, box-shadow .18s ease, transform .08s ease;
}

.tl-input::placeholder{
  text-align: right;
  color: rgba(31,42,55,.40);
}

.tl-input:focus{
  border-color: rgba(0,37,78,.65);
  box-shadow: 0 0 0 .22rem rgba(0,37,78,.12);
  outline: 0;
}

/* Eye button (LEFT side visually in RTL = inside input left) */
.tl-eye{
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 0;
  background: rgba(0,37,78,.06);
  color: rgba(31,42,55,.55);
  cursor: pointer;
  transition: background .18s ease, color .18s ease;
}

.tl-eye:hover{
  background: rgba(0,37,78,.10);
  color: var(--navy);
}

/* Hint */
.tl-hint{
  display:block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 13px;
}

/* Button */
.tl-btn{
  height: 52px;
  border-radius: 14px;
  border: 0;
  background: linear-gradient(180deg, var(--navy), var(--navy2));
  box-shadow: 0 12px 24px rgba(0,37,78,.18);
  font-weight: 900;
  font-size: 15.5px;
  letter-spacing: .2px;
  margin-top: 10px;
  transition: transform .10s ease, box-shadow .18s ease, filter .18s ease;
}

.tl-btn:hover{
  filter: brightness(1.02);
  box-shadow: 0 14px 28px rgba(0,37,78,.22);
}

.tl-btn:active{
  transform: translateY(1px);
}

.tl-btn-ico{
  margin-right: 10px;
  opacity: .9;
}

/* Little footer note */
.tl-footer-note{
  margin-top: 14px;
  padding: 12px 12px;
  border-radius: 14px;
  background: rgba(236,178,0,.08);
  border: 1px solid rgba(236,178,0,.20);
  color: rgba(31,42,55,.88);
  font-size: 13.5px;
  display: flex;
  gap: 10px;
  align-items: center;
}

.tl-footer-note i{
  color: var(--gold);
  font-size: 16px;
}

/* Responsive fine-tune */
@media (max-width: 576px){
  .tl-title{ font-size: 26px; }
  .tl-card-body{ padding: 14px 14px 18px; }
  .tl-card-head{ padding: 18px 14px 10px; }
  .tl-brand-inner{ padding: 18px 14px; }
  .tl-input{ height: 48px; border-radius: 13px; }
  .tl-btn{ height: 50px; border-radius: 13px; }
}