@import "./admin.css";

/* =========================================================

   CAMTECH CDMS — UNIFIED LOGIN & SIGNUP THEME

   Century Gothic | Light blue background | Purple-blue brand

   ========================================================= */



.auth-page {

  position: relative;

  min-height: 100vh;

  overflow: hidden;

  display: grid;

  place-items: center;

  font-family: "Century Gothic", Arial, Helvetica, sans-serif;

  color: #172033;



  background:

    radial-gradient(

      circle at 90% 10%,

      rgba(129, 140, 248, 0.20),

      transparent 30%

    ),

    radial-gradient(

      circle at 10% 90%,

      rgba(124, 58, 237, 0.12),

      transparent 30%

    ),

    linear-gradient(135deg, #edf3fb 0%, #dce8f7 100%);

}



/* Subtle background grid */

.auth-page::before {

  content: "";

  position: absolute;

  inset: 0;

  pointer-events: none;

  background-image:

    linear-gradient(rgba(49, 99, 199, 0.035) 1px, transparent 1px),

    linear-gradient(90deg, rgba(49, 99, 199, 0.035) 1px, transparent 1px);

  background-size: 42px 42px;

  mask-image: linear-gradient(to bottom, black, transparent);

}



/* Soft purple and blue background decorations */

.auth-orb {

  position: absolute;

  border-radius: 50%;

  filter: blur(8px);

  opacity: 0.35;

  pointer-events: none;

  animation: authFloat 9s ease-in-out infinite;

}



.orb-a {

  width: 390px;

  height: 390px;

  top: -160px;

  left: -120px;

  background: radial-gradient(

    circle,

    rgba(80, 52, 210, 0.28),

    transparent 68%

  );

}



.orb-b {

  width: 450px;

  height: 450px;

  right: -170px;

  bottom: -220px;

  background: radial-gradient(

    circle,

    rgba(71, 117, 237, 0.25),

    transparent 68%

  );

  animation-delay: -3s;

}



.auth-grid {

  position: absolute;

  inset: 0;

  pointer-events: none;

}



.auth-shell {

  position: relative;

  z-index: 2;

  width: min(100%, 520px);

  padding: 28px 18px;

}



/* White authentication card */

.auth-card {

  padding: 38px;

  border: 1px solid #d4e0ef;

  border-radius: 22px;

  color: #172033;

  background: rgba(255, 255, 255, 0.97);

  box-shadow: 0 20px 55px rgba(37, 62, 99, 0.13);

  backdrop-filter: blur(16px);

  animation: authIn 0.7s cubic-bezier(.2, .8, .2, 1) both;

  transition: box-shadow 0.3s ease;

}



.auth-card:hover {

  box-shadow: 0 24px 60px rgba(37, 62, 99, 0.17);

}



.signup-card {

  width: 100%;

  max-width: 560px;

  margin: auto;

}



/* Logo */

.auth-brand {

  text-align: center;

  margin-bottom: 23px;

}



.auth-brand img {

  width: 150px;

  max-width: 70%;

  height: auto;

  filter: none;

}



/* Headings */

.auth-heading {

  text-align: center;

  margin-bottom: 27px;

}



.auth-badge {

  display: inline-flex;

  padding: 7px 12px;

  border-radius: 30px;

  background: #edf3ff;

  border: 1px solid #d5e3fb;

  color: #3163c7;

  font-size: 9px;

  font-weight: 800;

  letter-spacing: 1.3px;

}



.auth-heading h1 {

  margin: 14px 0 7px;

  color: #172033;

  font-family: "Century Gothic", Arial, sans-serif;

  font-size: 32px;

  font-weight: 800;

  letter-spacing: -0.7px;

}



.auth-heading h1 span {

  color: #5034d2;

}



.auth-heading p {

  margin: 0;

  color: #526984;

  font-size: 12px;

  font-weight: 600;

  line-height: 1.6;

}



/* Form fields */

.auth-field {

  margin-bottom: 16px;

}



.auth-field label {

  display: block;

  margin-bottom: 7px;

  color: #263b56;

  font-size: 12px;

  font-weight: 800;

}



.auth-label-row {

  display: flex;

  justify-content: space-between;

  align-items: center;

  gap: 10px;

}



.auth-label-row a {

  color: #3163c7;

  text-decoration: none;

  font-size: 11px;

  font-weight: 700;

}



.auth-label-row a:hover,

.auth-footer a:hover {

  color: #5034d2;

  text-decoration: underline;

}



/* Input containers */

.auth-input {

  display: flex;

  align-items: center;

  gap: 9px;

  min-height: 48px;

  padding: 0 13px;

  border: 1px solid #cbd9e8;

  border-radius: 10px;

  background: #f8fbff;

  transition: border-color 0.2s ease, box-shadow 0.2s ease;

}



.auth-input:focus-within {

  border-color: #4775ed;

  box-shadow: 0 0 0 3px rgba(71, 117, 237, 0.14);

}



.auth-input > span {

  color: #526984;

  font-size: 13px;

}



.auth-input input,

.auth-field select {

  width: 100%;

  min-width: 0;

  font-family: "Century Gothic", Arial, sans-serif;

  font-size: 12px;

  font-weight: 600;

  color: #172033;

}



.auth-input input {

  min-height: 44px;

  border: 0;

  outline: 0;

  background: transparent;

}



.auth-input input::placeholder {

  color: #8292a8;

  font-weight: 400;

}



.auth-field select {

  height: 48px;

  padding: 0 12px;

  border: 1px solid #cbd9e8;

  border-radius: 10px;

  background: #f8fbff;

}



.auth-field select option {

  color: #172033;

  background: #ffffff;

}



.auth-two {

  display: grid;

  grid-template-columns: 1fr 1fr;

  gap: 12px;

}



/* Remember me */

.auth-check {

  display: flex;

  align-items: center;

  gap: 8px;

  margin: 3px 0 20px;

  color: #526984;

  font-size: 11px;

  font-weight: 600;

  cursor: pointer;

}



.auth-check input {

  accent-color: #5034d2;

}



/* Error and success messages */

.auth-message {

  padding: 11px 13px;

  border-radius: 10px;

  margin-bottom: 15px;

  font-size: 11px;

  font-weight: 600;

  line-height: 1.5;

}



.auth-message.error {

  color: #a32137;

  background: #fff0f2;

  border: 1px solid #f3c5ce;

}



.auth-message.success {

  color: #08784e;

  background: #eafaf2;

  border: 1px solid #b8ebd0;

}



/* Main purple-blue button */

.auth-primary {

  width: 100%;

  min-height: 50px;

  border: 0;

  border-radius: 11px;

  cursor: pointer;

  display: flex;

  align-items: center;

  justify-content: center;

  gap: 12px;

  color: #ffffff;

  font-family: "Century Gothic", Arial, sans-serif;

  font-size: 12px;

  font-weight: 800;

  background: linear-gradient(

    112deg,

    #5034d2 0%,

    #792be8 55%,

    #4775ed 100%

  );

  box-shadow: 0 8px 20px rgba(80, 52, 210, 0.22);

  transition: transform 0.2s ease, box-shadow 0.2s ease;

}



.auth-primary:hover {

  transform: translateY(-2px);

  box-shadow: 0 12px 25px rgba(80, 52, 210, 0.28);

}



.auth-primary:disabled {

  opacity: 0.65;

  cursor: wait;

  transform: none;

}



.auth-arrow {

  font-size: 19px;

  transition: transform 0.2s ease;

}



.auth-primary:hover .auth-arrow {

  transform: translateX(4px);

}



/* Divider */

.auth-divider {

  display: flex;

  align-items: center;

  gap: 10px;

  margin: 23px 0;

  color: #71839a;

  font-size: 9px;

  font-weight: 700;

  letter-spacing: 1px;

}



.auth-divider::before,

.auth-divider::after {

  content: "";

  flex: 1;

  height: 1px;

  background: #dce5ef;

}



/* Google button */

.auth-google {

  width: 100%;

  min-height: 47px;

  border-radius: 11px;

  border: 1px solid #d4e0ef;

  background: #ffffff;

  color: #263b56;

  cursor: pointer;

  font-family: "Century Gothic", Arial, sans-serif;

  font-size: 11px;

  font-weight: 800;

  transition: background 0.2s ease;

}



.auth-google:hover {

  background: #f4f8fd;

}



.auth-google span {

  display: inline-grid;

  place-items: center;

  width: 24px;

  height: 24px;

  margin-right: 7px;

  border-radius: 7px;

  background: #ffffff;

  color: #4285f4;

  font-weight: 900;

}



/* Footer links */

.auth-footer {

  display: flex;

  justify-content: center;

  flex-wrap: wrap;

  gap: 6px;

  margin-top: 21px;

  color: #526984;

  font-size: 11px;

  font-weight: 600;

}



.auth-footer a {

  color: #3163c7;

  text-decoration: none;

  font-weight: 800;

}



/* Signup account-type selection */

.account-switch {

  display: grid;

  grid-template-columns: 1fr 1fr;

  gap: 10px;

  margin-bottom: 18px;

}



.account-switch button {

  min-height: 65px;

  border: 1px solid #d4e0ef;

  border-radius: 11px;

  background: #f8fbff;

  color: #526984;

  text-align: left;

  padding: 11px;

  cursor: pointer;

  transition: background 0.2s ease, border-color 0.2s ease;

}



.account-switch button.active {

  border-color: #3163c7;

  background: #edf3ff;

  color: #172033;

  box-shadow: 0 0 0 2px rgba(49, 99, 199, 0.08);

}



.account-switch strong,

.account-switch small {

  display: block;

}



.account-switch strong {

  margin-top: 5px;

  color: #172033;

  font-size: 12px;

  font-weight: 800;

}



.account-switch small {

  margin-top: 2px;

  color: #526984;

  font-size: 10px;

}



/* Animations */

@keyframes authIn {

  from {

    opacity: 0;

    transform: translateY(18px);

  }

  to {

    opacity: 1;

    transform: none;

  }

}



@keyframes authFloat {

  50% {

    transform: translate3d(25px, 30px, 0) scale(1.08);

  }

}



@keyframes gradientMove {

  0%, 100% { background-position: 0% 50%; }

  50% { background-position: 100% 50%; }

}



/* Mobile layout */

@media (max-width: 600px) {

  .auth-card {

    padding: 27px 20px;

    border-radius: 18px;

  }



  .auth-heading h1 {

    font-size: 28px;

  }



  .auth-two,

  .account-switch {

    grid-template-columns: 1fr;

  }

}


/* =========================================================
   Google & Microsoft buttons — shared by login and signup
   ========================================================= */

.auth-google,
.auth-microsoft {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 12px;
  text-align: center;
}

.auth-google span {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin: 0;
  flex: 0 0 24px;
  border-radius: 7px;
  background: #ffffff;
  color: #4285f4;
  font-weight: 900;
  font-size: 17px;
}

.auth-microsoft .microsoft-mark {
  display: grid;
  grid-template-columns: repeat(2, 10px);
  grid-template-rows: repeat(2, 10px);
  gap: 2px;
  width: 22px;
  height: 22px;
  margin: 0;
  padding: 0;
  flex: 0 0 22px;
  background: transparent;
  border-radius: 0;
}

.auth-microsoft .microsoft-mark i {
  display: block;
  width: 10px;
  height: 10px;
  margin: 0;
  padding: 0;
  border-radius: 0;
}

.auth-microsoft .microsoft-mark i:nth-child(1) { background: #f25022; }
.auth-microsoft .microsoft-mark i:nth-child(2) { background: #7fba00; }
.auth-microsoft .microsoft-mark i:nth-child(3) { background: #00a4ef; }
.auth-microsoft .microsoft-mark i:nth-child(4) { background: #ffb900; }

.auth-google:focus-visible,
.auth-microsoft:focus-visible {
  outline: 3px solid rgba(71, 117, 237, 0.28);
  outline-offset: 2px;
}

@media (max-width: 600px) {
  .auth-google,
  .auth-microsoft {
    min-height: 46px;
  }
}
