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

body, html {
  width: 100%;
  height: 100%;
  font-family: 'Poppins', sans-serif;
  /* overflow: hidden; */
  position: relative;
}

/* Background image + overlay */
body {
  background: url('../img/background\ 1.jpg') no-repeat center center fixed;
  background-color: #ffffff;
  background-size: cover;
  height: 100vh;
  width: 100vw;
}

.background-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(3, 1, 1, 0);
  backdrop-filter: blur(1px);
  z-index: 0;
}

/* Container */
.login-container {
  position: relative;
  z-index: 1;
  display: flex;
  width: 900px;
  height: 550px;
  border-radius: 20px;
  box-shadow: 0px 25px 40px rgba(0.35, 0.35, 0.35, 0.35);
  overflow: hidden;
  background: #ffffffcc; /* Slightly transparent white */
  margin: auto;
  top: 50%;
  transform: translateY(-50%);
}

.text-logo {
  font-family: 'Open Sans', sans-serif; 
  font-weight: bold;
  font-size: 45px;
  color: #ffb400; /* your brand color */
  /* add more styling as needed */
}


/* Left panel */
.left-panel {
  flex: 1;
  /* background: linear-gradient(90deg,  #4a4655ab, #ffffff00);   */
  background-color: #1e1e2d;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
}

.left-panel img {
  max-width: 280px;
  margin-bottom: 30px;
  filter: drop-shadow(0px 5px 10px rgba(0, 0, 0, 0.15));
}

.left-panel h2 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 12px;
  color: #ffffff;
}

.left-panel p {
  font-size: 18px;
  font-weight: 400;
  opacity: 0.85;
  max-width: 280px;
  line-height: 1.4;
  color: #ffffff;
}

/* Right panel */
.right-panel {
  flex: 1;
  padding: 60px 50px 60px 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* background: #fff; */
/* background: linear-gradient(270deg, #1e1e2d, #ffffff00); */
}

.right-panel h1 {
  font-size: 28px;
  color: #333333;
  margin-bottom: 10px;
  font-weight: 700;
}

.subtitle {
  color: #777777;
  margin-bottom: 40px;
  font-size: 18px;
  font-weight: 500;
}

.signup-text {
  margin-top: 15px; 
  font-size: 14px;
  color: #000000;
  text-align: center;
}

.signup-text a {
  color: #1e1e2d;
  text-decoration: none;
  font-weight: 600;
}

.signup-text a:hover {
  text-decoration: underline;
}


/* Form */
form {
  width: 100%;
}

.input-group {
  margin-bottom: 30px;
  display: flex;
  flex-direction: column;
}

label {
  font-weight: 600;
  margin-bottom: 8px;
  color: #444444;
  font-size: 16px;
}

input[type="email"],
input[type="password"] {
  padding: 14px 18px;
  font-size: 16px;
  border-radius: 12px;
  border: 1.8px solid #dddddd;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input[type="email"]:focus,
input[type="password"]:focus {
  border-color: #6e72fc;
  outline: none;
  box-shadow: 0 0 10px rgba(110, 114, 252, 0.4);
}


.error-message {
  color: red;
  font-size: 0.9em;
  margin-top: 5px;
}



/* Button */
.btn-login {
  width: 100%;
  padding: 16px 0px;
  /* background: linear-gradient(135deg, #6e72fc, #ad1deb); */
  background-color: #52528c;
  /* background: linear-gradient(135deg, #000000, #9a1dcc); */
  border: none;
  border-radius: 14px;
  color: #fff;
  font-weight: 700;
  font-size: 20px;
  cursor: pointer;
  transition: background 0.4s ease;
  box-shadow: 0px 8px 15px rgba(110, 114, 252, 0.3);
}

.btn-login:hover {
  /* background: linear-gradient(135deg, #000000, #54ec0d); */
  background: #6e72fc !important;
  color: #fff;
  box-shadow: 0px 10px 20px rgba(90, 96, 229, 0.5);
}

/* Resend OTP Button */
.resend-otp-btn {
  background: transparent;
  border: 1px solid #52528c;
  color: #52528c;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.resend-otp-btn:hover {
  background: #52528c;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(82, 82, 140, 0.3);
}

.resend-otp-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
  border-color: #ccc;
  color: #999;
  background: transparent;
}

.resend-otp-btn:disabled:hover {
  background: transparent;
  color: #999;
  transform: none;
  box-shadow: none;
}

.resend-otp-btn i {
  font-size: 0.9rem;
}

/* Responsive */

.register-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}
 
/* ------------------------------
   Inner Box
------------------------------ */
.register-box {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: stretch;
  width: 90%;
  max-width: 1000px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}
 
/* ------------------------------
   Left Section
------------------------------ */
.register-left {
  flex: 1;
  background: rgba(13, 27, 42, 0.95);
  color: white;
  padding: 40px 25px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}
 
.register-left .brand {
  font-size: 1.8rem;
  font-weight: 600;
  color: #ffb703;
  margin-bottom: 8px;
}
 
.register-left .tagline {
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 8px;
}
 
.register-left p {
  font-size: 0.85rem;
  color: #d9d9d9;
  line-height: 1.5;
}
 
/* ------------------------------
   Right Section (Form)
------------------------------ */
.register-right {
  flex: 1.1;
  background: rgba(255, 255, 255, 0.95);
  padding: 40px 35px;
  display: flex;
  justify-content: center;
  align-items: center;
}
 
.form-card {
  width: 100%;
  max-width: 340px;
}
 
.form-card h2 {
  text-align: center;
  font-size: 1.5rem;
  color: #0d1b2a;
  margin-bottom: 8px;
}
 
.form-card p {
  text-align: center;
  color: #555;
  font-size: 0.85rem;
  margin-bottom: 18px;
}
 
/* ------------------------------
   Input Groups
------------------------------ */
.input-group {
  margin-bottom: 15px;
  display: flex;
  flex-direction: column;
}
 
.input-group label {
  font-weight: 500;
  margin-bottom: 4px;
  color: #222;
  font-size: 0.9rem;
}
 
.input-group input {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 0.9rem;
  transition: border 0.3s;
}
 
.input-group input:focus {
  border-color: #ffb703;
  outline: none;
}
 
/* ------------------------------
   Button & Links
------------------------------ */
.btn {
  width: 100%;
  background: #52528c!important;
  border: none;
  padding: 10px;
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
}
 
.btn:hover {
  background: #6e72fc !important;
  transform: translateY(-2px);
}
 
.login-text {
  text-align: center;
  margin-top: 10px;
  font-size: 0.85rem;
}
 
.login-text a {
  color: #0d1b2a;
  font-weight: 600;
  text-decoration: none;
}
 
.login-text a:hover {
  text-decoration: underline;
}
 
.forgot-password {
  text-align: right;
  margin: 10px 130px 15px;
}
 
.forgot-password a {
  color: #021730;
  text-decoration: none;
  font-size: 14px;
}
 
.forgot-password a:hover {
  text-decoration: underline;
}
/* ------------------------------
   Responsive Design
------------------------------ */
@media (max-width: 900px) {
  .register-box {
    flex-direction: column;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
  }
 
  .register-left,
  .register-right {
    padding: 30px 20px;
  }
 
  .register-left .brand {
    font-size: 1.5rem;
  }
 
  .register-left p,
  .form-card p,
  .login-text {
    font-size: 0.8rem;
  }
 
  .form-card h2 {
    font-size: 1.3rem;
  }
}
.register-wrapper {
  margin-top: -10px;
}

/* ------------------------------
   Right Section (Form)
------------------------------ */
.register-right {
  flex: 1.2;
  background: rgba(255, 255, 255, 0.95);
  padding: 60px 50px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.form-card {
  width: 100%;
  max-width: 380px;
}

.form-card h2 {
  text-align: center;
  font-size: 1.8rem;
  color: #0d1b2a;
  margin-bottom: 10px;
}

.form-card p {
  text-align: center;
  color: #555;
  margin-bottom: 25px;
}

/* ------------------------------
   Input Groups
------------------------------ */
.input-group {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
}

.input-group label {
  font-weight: 500;
  margin-bottom: 6px;
  color: #222;
}

.input-group input {
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 0.95rem;
  transition: border 0.3s;
}

.input-group input:focus {
  border-color: #ffb703;
  outline: none;
}

/* ------------------------------
   Button & Links
------------------------------ */
.btn {
  width: 100%;
  background: #ffb703;
  border: none;
  padding: 12px;
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
}

.btn:hover {
  background: #e09e02;
  transform: translateY(-2px);
}

.login-text {
  text-align: center;
  margin-top: 15px;
  font-size: 0.95rem;
}

.login-text a {
  color: #0d1b2a;
  font-weight: 600;
  text-decoration: none;
}

.login-text a:hover {
  text-decoration: underline;
}

/* ------------------------------
   Responsive Design
------------------------------ */
@media (max-width: 768px) {
  .login-container {
    width: 90vw;           
    max-width: 400px;      
    height: auto;         
    flex-direction: column;
    border-radius: 20px;   
    margin: 40px auto;    
    top: auto;           
    transform: none;      
    box-shadow: 0px 15px 30px rgba(0, 0, 0, 0.2); 
  }

  .left-panel, .right-panel {
    padding: 30px 20px;
  }

  .left-panel img {
    max-width: 200px; 
    margin-bottom: 20px;
  }

  .left-panel h2 {
    font-size: 24px;
  }

  .left-panel p {
    font-size: 16px;
    max-width: 100%;
  }

  .right-panel h1 {
    font-size: 24px;
  }

  .subtitle {
    font-size: 16px;
    margin-bottom: 30px;
  }

  .btn-login {
    font-size: 18px;
    padding: 14px 0;
  }
}
@media (max-width: 900px) {
  .register-box {
    flex-direction: column;
    width: 95%;
  }

  .register-left,
  .register-right {
    padding: 40px 25px;
  }

  .register-left {
    border-radius: 20px 20px 0 0;
  }

  .register-right {
    border-radius: 0 0 20px 20px;
  }
}
