@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;700&display=swap');

*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family:'Cairo',sans-serif;
}


:root {
  --primary: #030397;
  --primary-dark: #e63946;
  --secondary: #e63946;
  --accent: #ffb84d;
  --text: #172033;
  --muted: #697188;
  --background: #ffffff;
  --soft: #f6f7ff;
  --border: #e5e8f2;
  --dark: #11162b;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(54, 52, 111, 0.12);
  --radius: 24px;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}



.eyebrow {
    padding: 10px 25px 10px 25px;
    background-image: linear-gradient(90deg, #343CD91A 20%, #F2295B00 100%);
    border-radius: 30px 30px 30px 30px;
    font-weight: 600;
}


.auth-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 10% 15%, rgba(25, 183, 166, 0.12), transparent 24%),
    radial-gradient(circle at 90% 10%, rgba(91, 76, 240, 0.12), transparent 28%),
    #fbfbff;
}

.auth-main {
  min-height: calc(100vh - 76px);
}

.auth-layout {
  min-height: calc(100vh - 76px);
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.auth-panel {
  padding: clamp(42px, 6vw, 20px);
  display: flex;
  justify-content: center;
}

.auth-info-panel {
  position: relative;
  overflow: hidden;
  color: white;
  background:
    linear-gradient(145deg, rgba(11, 16, 32, 0.93), rgba(68, 54, 217, 0.9)),
    var(--dark);
}

.auth-info-panel::before,
.auth-info-panel::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}

.auth-info-panel::before {
  width: 280px;
  height: 280px;
  top: -90px;
  left: -70px;
}

.auth-info-panel::after {
  width: 220px;
  height: 220px;
  right: -80px;
  bottom: -60px;
}

.auth-info-content {
  position: relative;
  z-index: 2;
  width: min(100%, 560px);
  margin-top: 100px;
}

.auth-info-content .eyebrow {
  color: #c9c4ff;
}

.auth-info-content h1 {
    margin-top: 25px;
  font-size: clamp(2.4rem, 5vw, 4.5rem);
  line-height: 1.25;
  letter-spacing: -0.04em;
}

.auth-info-content h1 span {
  display: block;
  color: #b8afff;
}

.auth-info-content > p {
  max-width: 560px;
  margin-top: 22px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 1.05rem;
}

.auth-benefits {
  display: grid;
  gap: 18px;
  margin-top: 34px;
}

.auth-benefits > div {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.auth-benefits > div > span {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: white;
  background: var(--secondary);
  font-weight: 800;
}

.auth-benefits p {
  display: grid;
}

.auth-benefits small {
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.62);
}



.auth-form-panel {
  background: rgba(255, 255, 255, 0.58);
}

.auth-card {
  width: min(100%, 500px);
  padding: clamp(28px, 5vw, 46px);
  border: 1px solid rgba(229, 232, 242, 0.95);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.auth-card-heading {
  margin-bottom: 30px;
  text-align: center;
}

.auth-icon {
  width: 58px;
  height: 58px;
  margin: 0 auto 16px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: var(--soft);
  font-size: 1.5rem;
}

.auth-card-heading h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
}

.auth-card-heading p {
  margin-top: 7px;
  color: var(--muted);
}

.auth-form {
  display: grid;
  gap: 10px;
}

.form-group {
  display: grid;
  gap: 8px;
}

.form-group label {
  font-weight: 700;
}

.input-wrapper {
  position: relative;
}

.input-wrapper input {
  width: 100%;
  min-height: 54px;
  padding: 0 48px 0 50px;
  border: 1px solid var(--border);
  border-radius: 14px;
  outline: none;
  color: var(--text);
  background: #fff;
  transition: 0.2s ease;
}

.input-wrapper input::placeholder {
  color: #a0a6b5;
}

.input-wrapper input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(91, 76, 240, 0.1);
}

.input-wrapper input.invalid {
  border-color: #d93838;
  box-shadow: 0 0 0 4px rgba(217, 56, 56, 0.08);
}

.input-icon {
  position: absolute;
  top: 50%;
  right: 17px;
  transform: translateY(-50%);
  color: var(--muted);
}

.form-group select {
    width: 100%;
    min-height: 54px;
    padding: 0 20px;
    border: 1px solid #e5e8f2;
    border-radius: 14px;
    outline: none;
    color: #172033;
    background: #fff;
    font-family: inherit;
    font-size: 15px;
    cursor: pointer;
    transition: 0.2s ease;
    appearance: none;
}



.form-error {
  min-height: 20px;
  color: #c62929;
  font-size: 0.8rem;
}



.auth-submit {
  width: 100%;
  min-height: 54px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 800;
  cursor: pointer;
  transition: 0.2s ease;
}

.auth-submit {
  border: 0;
  color: white;
  background: var(--primary);
  box-shadow: 0 12px 26px rgba(91, 76, 240, 0.22);
}

.auth-submit:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

.auth-submit:disabled {
  opacity: 0.75;
  cursor: wait;
  transform: none;
}


.form-message {
  min-height: 24px;
  padding: 0;
  border-radius: 12px;
  text-align: center;
  font-size: 0.9rem;
}

.form-message.success,
.form-message.info,
.form-message.error {
  padding: 12px;
}

.form-message.success {
  color: #117466;
  background: rgba(25, 183, 166, 0.11);
}

.form-message.info {
  color: #4338a8;
  background: rgba(91, 76, 240, 0.09);
}

.form-message.error {
  color: #d41414;
  background: rgba(25, 183, 166, 0.11);
}

.upload-box{
    border:2px dashed var(--border);
    border-radius:16px;
    padding:30px;
    text-align:center;
    cursor:pointer;
    transition:.3s;
    display:block;
    background:#fafafa;
}

.upload-box:hover{
    border-color:var(--primary);
    background:var(--soft);
}

.upload-icon{
    font-size:40px;
    display:block;
    margin-bottom:10px;
}

.upload-box strong{
    display:block;
    margin-bottom:6px;
    color:var(--text);
}

.upload-box small{
    color:var(--muted);
}

#file-name{
    display:block;
    margin-top:10px;
    color:var(--primary);
    font-weight:600;
}

@media (max-width: 960px) {
  .auth-layout {
    grid-template-columns: 1fr;
  }

  .auth-info-panel {
    min-height: auto;
    padding-top: 60px;
    padding-bottom: 60px;
  }

  .auth-info-content {
    text-align: center;
  }

  .auth-benefits {
    width: min(100%, 540px);
    margin-inline: auto;
    text-align: right;
  }


  .auth-form-panel {
    padding-top: 60px;
    padding-bottom: 70px;
  }
}

@media (max-width: 640px) {
  .auth-nav {
    min-height: 68px;
  }

  .auth-nav .logo {
    font-size: 1.05rem;
  }

  .auth-nav .logo-icon {
    width: 38px;
    height: 38px;
  }

  .back-home {
    font-size: 0.86rem;
  }

  .auth-panel {
    padding-inline: 16px;
  }

  .auth-info-panel {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .auth-info-content h1 {
    font-size: clamp(2.15rem, 11vw, 3rem);
  }

  .auth-card {
    padding: 26px 18px;
    border-radius: 22px;
  }

  
}
