/* =========================================================
   auth.css – DentalLab (sobre)
   Dépend de dentallab.css (variables & fond déjà posés)
   ========================================================= */

.auth {
  min-height: calc(100vh - 40px);
  display: grid;
  place-items: center;
  padding: 24px 16px;
}

.auth__wrap {
  width: 100%;
  max-width: 420px;
}

.auth__card {
  background: radial-gradient(circle at top right, rgba(47,128,237,.14), rgba(21,29,47,.95) 70%);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 18px;
  box-shadow: 0 18px 35px rgba(0,0,0,.55);
  padding: 20px;
}

.auth__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.auth__logo {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 30% 30%, #56ccf2, #2f80ed);
  color: #fff;
  box-shadow: 0 0 16px rgba(47,128,237,.65);
  font-size: 20px;
}

.auth__title {
  font-weight: 700;
  font-size: 16px;
  line-height: 1.1;
  color: #fff;
}

.auth__subtitle {
  font-size: 12px;
  opacity: .7;
}

.auth__alert {
  background: rgba(235,87,87,.16);
  border: 1px solid rgba(235,87,87,.55);
  color: #ffcdd2;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 13px;
  margin: 10px 0 14px;
}

/* OAuth */
.auth__oauth {
  display: grid;
  gap: 10px;
  margin: 12px 0 10px;
}

.auth__oauthBtn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.35);
  color: #fff;
  text-decoration: none;
  font-size: 13px;
}

.auth__oauthBtn:hover {
  border-color: rgba(47,128,237,.55);
  box-shadow: 0 0 0 2px rgba(47,128,237,.18);
}

.auth__oauthIcon {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: rgba(255,255,255,.08);
}

.auth__oauthBtn--facebook .auth__oauthIcon svg {
  color: #fff;
}

.auth__oauthArrow {
  opacity: .8;
}

/* Separator */
.auth__sep {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px 0 14px;
  opacity: .7;
  font-size: 12px;
}

.auth__sep::before,
.auth__sep::after {
  content: "";
  height: 1px;
  flex: 1;
  background: rgba(255,255,255,.12);
}

/* Form */
.auth__form {
  display: grid;
  gap: 12px;
}

.auth__field {
  display: grid;
  gap: 6px;
}

.auth__label {
  font-size: 12px;
  opacity: .75;
}

.auth__input {
  width: 100%;
  border-radius: 14px;
  padding: 10px 12px;
  outline: none;
}

.auth__input:focus {
  box-shadow: 0 0 0 2px rgba(47,128,237,.25);
  border-color: rgba(47,128,237,.70) !important;
}

.auth__submit {
  border-radius: 14px;
  padding: 10px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Links */
.auth__links {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 6px;
}

.auth__link {
  font-size: 12px;
  color: rgba(255,255,255,.75);
  text-decoration: none;
}

.auth__link:hover {
  color: #fff;
  text-decoration: underline;
}

.auth__foot {
  margin-top: 14px;
  opacity: .6;
  font-size: 12px;
  text-align: center;
}

/* RTL */
html[dir="rtl"] .auth__brand {
  flex-direction: row-reverse;
}
html[dir="rtl"] .auth__links {
  flex-direction: row-reverse;
}
