/* Connexion portail (formateur / parent) — pages /formateur/index.html et /parent/index.html */

.ft-login-sr-only {
   position: absolute;
   width: 1px;
   height: 1px;
   padding: 0;
   margin: -1px;
   overflow: hidden;
   clip: rect(0, 0, 0, 0);
   white-space: nowrap;
   border: 0;
}

.ft-login-page {
   margin: 0;
   min-height: 100vh;
   font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
   background: #0c1222;
   color: #0f172a;
   -webkit-font-smoothing: antialiased;
}

.ft-login-shell {
   min-height: 100vh;
   display: grid;
   grid-template-columns: 1fr;
}

@media (min-width: 900px) {
   .ft-login-shell {
      grid-template-columns: minmax(320px, 1fr) minmax(400px, 520px);
   }
}

.ft-login-aside {
   position: relative;
   padding: 2rem 1.75rem;
   display: flex;
   flex-direction: column;
   justify-content: space-between;
   overflow: hidden;
   background: linear-gradient(145deg, #0f172a 0%, #1e3a5f 42%, #1d4ed8 88%, #2563eb 100%);
   color: #f8fafc;
}

.ft-login-aside::before {
   content: "";
   position: absolute;
   inset: 0;
   background-image: radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.12) 0%, transparent 45%),
      radial-gradient(circle at 90% 10%, rgba(96, 165, 250, 0.25) 0%, transparent 40%);
   pointer-events: none;
}

.ft-login-aside::after {
   content: "";
   position: absolute;
   inset: 0;
   background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
   opacity: 0.6;
   pointer-events: none;
}

.ft-login-aside__inner {
   position: relative;
   z-index: 1;
}

.ft-login-brand {
   font-weight: 800;
   font-size: clamp(1.35rem, 3vw, 1.65rem);
   letter-spacing: -0.03em;
   line-height: 1.2;
   color: #fff !important;
   text-decoration: none !important;
}

.ft-login-brand span {
   color: #93c5fd;
}

.ft-login-kicker {
   display: inline-block;
   margin-top: 1rem;
   padding: 0.35rem 0.75rem;
   border-radius: 999px;
   font-size: 0.72rem;
   font-weight: 700;
   letter-spacing: 0.12em;
   text-transform: uppercase;
   background: rgba(255, 255, 255, 0.12);
   border: 1px solid rgba(255, 255, 255, 0.18);
   color: #e2e8f0;
}

.ft-login-aside h1 {
   margin: 1.25rem 0 0;
   font-size: clamp(1.5rem, 4vw, 2rem);
   font-weight: 700;
   letter-spacing: -0.02em;
   line-height: 1.25;
   color: #fff;
}

.ft-login-aside p {
   margin: 0.85rem 0 0;
   max-width: 28rem;
   font-size: 0.95rem;
   line-height: 1.6;
   color: rgba(226, 232, 240, 0.88);
}

.ft-login-aside__foot {
   position: relative;
   z-index: 1;
   margin-top: 2rem;
   font-size: 0.8rem;
   color: rgba(148, 163, 184, 0.95);
}

.ft-login-main {
   display: flex;
   flex-direction: column;
   align-items: center;
   justify-content: center;
   padding: 1.5rem 1.25rem 2.5rem;
   background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
}

@media (min-width: 900px) {
   .ft-login-main {
      padding: 2rem 2.5rem;
   }
}

.ft-login-back {
   align-self: flex-start;
   margin-bottom: 1.25rem;
   display: inline-flex;
   align-items: center;
   gap: 0.45rem;
   font-size: 0.875rem;
   font-weight: 600;
   color: #64748b !important;
   text-decoration: none !important;
   transition: color 0.15s ease;
}

.ft-login-back:hover {
   color: #2563eb !important;
}

.ft-login-card {
   width: 100%;
   max-width: 400px;
   background: #fff;
   border-radius: 20px;
   box-shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.06), 0 24px 48px -12px rgba(15, 23, 42, 0.12);
   border: 1px solid rgba(15, 23, 42, 0.06);
   overflow: hidden;
}

.ft-login-card__head {
   padding: 1.75rem 1.75rem 1.25rem;
   border-bottom: 1px solid #f1f5f9;
}

.ft-login-card__title {
   margin: 0;
   font-size: 1.35rem;
   font-weight: 700;
   letter-spacing: -0.02em;
   color: #0f172a;
}

.ft-login-card__hint {
   margin: 0.4rem 0 0;
   font-size: 0.875rem;
   color: #64748b;
   line-height: 1.45;
}

.ft-login-card__body {
   padding: 1.5rem 1.75rem 1.75rem;
}

.ft-login-field {
   margin-bottom: 1.15rem;
}

.ft-login-field label {
   display: block;
   margin-bottom: 0.4rem;
   font-size: 0.78rem;
   font-weight: 600;
   letter-spacing: 0.04em;
   text-transform: uppercase;
   color: #64748b;
}

.ft-login-field .form-control {
   height: 48px;
   border-radius: 12px;
   border: 1px solid #e2e8f0;
   font-size: 1rem;
   padding: 0.5rem 1rem;
   transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.ft-login-field .form-control:focus {
   border-color: #2563eb;
   box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.ft-login-field .form-control::placeholder {
   color: #94a3b8;
}

#ft_login {
   font-family: ui-monospace, "Cascadia Code", "Segoe UI Mono", monospace;
   letter-spacing: 0.12em;
   text-transform: uppercase;
}

#pp_code {
   font-family: ui-monospace, "Cascadia Code", "Segoe UI Mono", monospace;
   letter-spacing: 0.18em;
   font-variant-numeric: tabular-nums;
}

.ft-login-submit {
   margin-top: 0.25rem;
   width: 100%;
   height: 48px;
   border: none;
   border-radius: 12px;
   font-weight: 700;
   font-size: 0.95rem;
   color: #fff !important;
   cursor: pointer;
   background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 50%, #1e40af 100%);
   box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
   transition: transform 0.12s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.ft-login-submit:hover {
   filter: brightness(1.05);
   box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

.ft-login-submit:active {
   transform: scale(0.98);
}

.ft-login-submit:disabled {
   opacity: 0.65;
   cursor: not-allowed;
   transform: none;
}

#ft_status {
   min-height: 1.25rem;
   margin-top: 1rem;
   font-size: 0.8125rem;
   line-height: 1.4;
   text-align: center;
}

.ft-login-meta {
   margin-top: 1.25rem;
   padding-top: 1.25rem;
   border-top: 1px solid #f1f5f9;
   text-align: center;
   font-size: 0.8rem;
   color: #94a3b8;
}

.ft-login-meta a {
   color: #2563eb !important;
   font-weight: 600;
   text-decoration: none !important;
}

.ft-login-meta a:hover {
   text-decoration: underline !important;
}

@media (max-width: 899px) {
   .ft-login-aside {
      min-height: auto;
      padding: 1.5rem 1.25rem;
   }

   .ft-login-aside__foot {
      display: none;
   }
}
