@import url('../App/genericCss/fonts.css');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ===== LOGIN TOPBAR ===== */
.login-topbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

/* The wordmark alone, same type as the dashboard sidebar (Zain 700, 30px) */
.login-topbar-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  outline-offset: 4px;
  transition: opacity 0.2s ease;
}

.login-topbar-logo:hover {
  opacity: 0.75;
}

.login-topbar-logo span {
  font-family: var(--font-brand);
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
  background: linear-gradient(135deg, #924a92 0%, #4e5ca0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.login-topbar-back {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.36rem 0.8rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: #555;
  background: transparent;
  border: 1px solid rgba(146, 74, 146, 0.25);
  border-radius: 2rem;
  text-decoration: none;
  transition: all 0.2s ease;
}

.login-topbar-back:hover {
  background: rgba(146, 74, 146, 0.08);
  border-color: rgba(146, 74, 146, 0.4);
  color: #924a92;
  transform: translateX(-2px);
}

.login-topbar-back svg {
  width: 1rem;
  height: 1rem;
  stroke: currentColor;
  transition: transform 0.2s ease;
}

.login-topbar-back:hover svg {
  transform: translateX(-3px);
}

/* Adjust body to account for topbar */
body {
  padding-top: 3.5rem;
}

@media (max-width: 900px) {
  .login-topbar {
    height: 3rem;
    padding: 0 1rem;
  }

  .login-topbar-logo span {
    font-size: 26px;
  }

  .login-topbar-back {
    padding: 0.4rem 0.8rem;
    font-size: 0.75rem;
  }

  .login-topbar-back span {
    display: none;
  }

  body {
    padding-top: 3rem;
  }

  .form-side {
    min-height: calc(100vh - 3rem) !important;
  }
}

@media (max-width: 450px) {
  .login-topbar {
    height: 2.8rem;
    padding: 0 0.75rem;
  }

  .login-topbar-logo span {
    font-size: 24px;
  }

  body {
    padding-top: 2.8rem;
  }
}

 /*altn: e7ecff; (135deg, #C645F9 0%, #b743b6 50%, #5E6CE7 100%);   background: linear-gradient(135deg, rgba(198, 69, 249, 0.8), rgba(183, 67, 182, 0.8), rgba(94, 108, 231, 0.8));
*/

html{
  font-size: 16px;
}

body {
  background: #F1F3F5;
  font-family: var(--font-sans);
  /* padding-top is set in topbar section above */
}

.outerContainer{
  display: flex;
  width: 100%;
  height: auto;
  min-height: 100vh;
  overflow-y: auto;
  align-items: center;
  justify-content: center;
}

.container {
  width: 75%;
  min-width: 890px;
  max-width: 1300px;
  border-radius: 12px;
  display: flex;
  
}

.shadow{
  box-shadow: 0.3rem 0.5rem 0.8rem rgba(0, 0, 0, 0.25);
}

.login-box {
  display: flex;
  width: 100%;
  min-height: 650px;
}

.titleContainer{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;

}

.welcomeSpan {
  font-size: var(--font-size-lg);
  font-weight: 600;
  color: #666;
  margin-bottom: -8px;
}

.brandContainer{

  display: flex;
  flex-direction: row;
  align-items: center;
  margin-bottom: 0px;

}

.brandContainerSide{
  display: flex;
  flex-direction: column;
  align-items: center;

}

.brandLogo{
  width: 4.3rem;
  margin-right:10px;
}

.brandName{
  font-size: var(--font-size-4xl);
  font-weight: 700;
  font-family: var(--font-brand);
  background: linear-gradient(135deg, #924a92 0%, #4e5ca0 100%);
  /*background: linear-gradient(135deg, #e53989 0%, #b743b6 50%, #2fb5ff 100%); older gradient */
  -webkit-background-clip: text; /* Clip background to text */
  -webkit-text-fill-color: transparent; /* Make text fill transparent */
}

.form-side {
  width: 50%;
  padding: 50px 40px;
  background: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-radius: 12px 0px 0px 12px;
}




.tagline {
  font-size: var(--font-size-lg);
  font-weight: 300;
  max-width: 350px;
  text-align: center;
  color: #666;
  margin-bottom: 40px;
}

.credentialsBox{
  width: 80%;

}

.input-group {
  width:100%;
  margin-bottom: 20px;
  position: relative;
  display: flex;
}

.input-group input {
  width: 100%;
  padding: 14px 16px;
  padding-left: 55px;
  padding-right: 3rem;
  border: 1px solid #ccc;
  border-radius: 30px;
  font-size: var(--font-size-sm);
  outline: none;

}

.usrIconLogin{
  width:1.2rem;
  position: absolute;
  top: 50%;
  margin-left:20px;
  opacity: 0.4;
  transform: translateY(-50%);
  pointer-events: none;
}

.password-group {
  display: flex;
  align-items: center;

}

.togglePwdEye{
  width:1.1rem;
  opacity:0.5;
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  padding: 15px;
  box-sizing: content-box;
  transition: opacity 0.5s ease;
}

.togglePwdEye:hover{
  opacity: 0.8;
}

.btn {
  background: linear-gradient(135deg, #924a92 0%, #4e5ca0 100%);
   /* background: linear-gradient(135deg, #e53989 0%, #b743b6 50%, #2fb5ff 100%); older gradient */
  border: none;
  color: #fff;
  padding: 14px;
  border-radius: 30px;
  width: 100%;
  font-size: var(--font-size-base);
  cursor: pointer;
  transition: background 0.3s ease;
  margin-bottom: 25px;
}

.btn:hover {
  opacity: 0.9;
}

.signup-text {
  margin-top: 15px;
  font-size: var(--font-size-sm);
}

.signup-text a {
  color: #dd2476;
  text-decoration: none;
  font-weight: 500;
}

.divider {
  text-align: center;
  margin: 20px 0;
  position: relative;
}

.divider span {
  background: #fff;
  padding: 0 10px;
  position: relative;
  z-index: 1;
}

.divider:before {
  content: "";
  height: 1px;
  background: #ccc;
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  z-index: 0;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 15px;
}

.social-icons a {
  background: #f1f1f1;
  padding: 10px;
  border-radius: 50%;
  transition: 0.3s;
}

.social-icons a:hover {
  transform: scale(1.1);
}

.visual-side {
  width: 50%;
  background: url('media/AOCC.jpg') center center/cover no-repeat;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0px 12px 12px 0px;
}

.overlay {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(146, 74, 146, 0.65) 0%, rgba(78, 92, 160, 0.8) 100%);

  /* background: linear-gradient(135deg, rgba(229, 57, 137, 0.8), rgba(183, 67, 182, 0.8), rgba(47, 181, 255, 0.8)); older gradient */
  color: #fff;
  padding: 30px;
  text-align: center;
  display:flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 0px 12px 12px 0px;
}

.logo-text {
  font-size: var(--font-size-xl);
  font-weight: bold;
  margin-bottom: 15px;
}

.info-text {
  font-size: var(--font-size-sm);
}

.sidetext{
  color: #fff;
  font-size: var(--font-size-lg);
  font-weight: 400;
}

.brandNameSide{
  font-size: var(--font-size-4xl);
  font-family: var(--font-brand);
  font-weight: 700;
  margin-bottom: 10px;


}

.sideLogo{
  filter: brightness(0) invert(1);
  margin-bottom: -5px;
  width:70px;
}

.acvSideLogo{
  width: 14.4rem;
  margin-top: -20px;

}


.collab{
  font-weight: bold;
  font-size: var(--font-size-2xl);
  margin-top: -10px;
  margin-bottom: -10px;
}


@media (max-width: 900px) {

  body{
    background-color: #fff;
  }
  html{
    font-size: 19px;

  }

  .outerContainer{
    overflow-y: none;
  }

  .container{
    width: 100vw;
    min-height: calc(100vh - 3rem);
    border-radius: none;
    min-width: unset;


  }

  .login-box{
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
  }

  .form-side{
    width: 100%;

    min-height: calc(100vh - 3rem)!important;
    border-radius: 0px;
  }



  .visual-side{
    width:100%;
    min-height: calc(100vh + 0rem)!important;
    border-radius: 1.5rem 1.5rem 0px 0px;

    

  }

  .overlay{
    border-radius: 1.5rem 1.5rem 0px 0px;
    

    

  }

  .shadow{
  box-shadow: 0.3rem 0.5rem 0.8rem rgba(0, 0, 0, 0);
}

  .titleContainer{
    gap: 0.3rem;
  }


}





@media (max-width: 450px) {
  html{
    font-size: 17px;
  }

}

@media (max-width: 315px) {
  .container {
    min-width:315px;
    overflow-x: auto;
  }

}

/* Inline login error */
.login-error {
  width: 100%;
  box-sizing: border-box;
  margin: 0 0 20px;
  padding: 12px 16px;
  border: 1px solid #f1b4b0;
  border-left: 4px solid #d92d20;
  border-radius: 12px;
  background: #fef3f2;
  color: #912018;
  font-size: var(--font-size-sm);
  line-height: 1.45;
  text-align: left;
}

.login-error[hidden] {
  display: none;
}

.login-error p {
  margin: 0;
}

.login-error p + p {
  margin-top: 4px;
}

.login-error .login-error-hint {
  color: #b42318;
  font-size: 0.8125rem;
}
