@font-face {
    font-family: 'Rostack';
    src: url('../fonts/Rostack.woff') format('opentype');
    font-display: swap;
}

@font-face {
    font-family: 'Thedus Condensed Light';
    src: url('../fonts/FontsFree-Net-Thedus-CondensedLight.woff') format('truetype');
    font-display: swap;
}

@font-face {
    font-family: 'Asterone';
    src: url('../fonts/Asterone DEMO.woff') format('truetype');
    font-display: swap;
}

a {
  text-decoration: none;
  color: #007bff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ----------------------------------  🧠 header 🧠  ---------------------------*/                     
  
body {
    font-family: sans-serif;
    background: linear-gradient(to top, #191c1f, #111214) no-repeat;
    height: auto;
    background-color: #000000;
}

main {
    z-index: 1;
    background-image: url(../image/غلاف-صفحة.png);
    background-position: center;
    background-size: 0.3vw;
}

header {
    background-position: center;
    background-size: 0.3vw;
    z-index: 2;
    transition: background-color 0.3s ease;
    z-index: 1000;
}

/*----------------------------- Log In - Responsive Version -------------------------------*/

.Log-in {
  background-image: url(../image/غلاف-صفحة.png), linear-gradient(to top, #023055, #111214);
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
}

.Log-in-all {
  width: 100%;
  max-width: 100%;
  min-height: 100vh;
  display: flex;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  background-image: url(../image/v-01.png), linear-gradient(to top, #023055, #111214);
  background-position: -16vw 0vw;
  background-size: 80vw;
  justify-content: flex-end;
}

.Log-in-container {
  background-color: #222222; 
  width: 50%;
  padding: clamp(3rem, 5vw, 6rem);
  overflow-y: auto;
  height: 100vh; 
  position: relative;
  border-radius: 2vw 0 0 2vw;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.Log-in-container::-webkit-scrollbar {
  width: 8px;
}

.Log-in-container::-webkit-scrollbar-track {
  background: #1a1a1a;
}

.Log-in-container::-webkit-scrollbar-thumb {
  background: #007bff;
  border-radius: 4px;
}

.Log-in-img {
  width: 50%;
  min-height: 100%;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}

/* Header */
.head-page-Up {
  width: 100%;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0;
  margin-bottom: clamp(2rem, 4vw, 5vw);
}

.icon-logo {
  height: clamp(40px, 5vw, 80px);
  width: clamp(40px, 5vw, 80px);
  background-image: url(../image/icon.png);
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
  flex-shrink: 0;
}

.head-page-Up h1 {
  color: white;
  font-weight: 100;
  font-size: clamp(1rem, 2vw, 1.5rem);
  margin: 0;
}

.head-page-Up h1 a {
  color: #007bff;
  text-decoration: none;
  transition: color 0.3s;
}

.head-page-Up h1 a:hover {
  color: #48a0ff;
}

.text-Log-In {
  color: white;
  font-weight: 100;
  font-size: clamp(2.2rem, 4.5vw, 3.5rem);
  margin-bottom: clamp(1.5rem, 3vw, 3rem);
  text-align: left;
  padding-left: 0;
}

.form-Log-In {
  width: 100%;
  height: auto;
  background-color: transparent !important;
}

/* Form Groups */
.form-group {
  margin-bottom: clamp(1.5rem, 2vw, 2rem);
  display: flex;
  flex-direction: column;
  width: 100%;
  position: relative;
}

/* Labels */
.labelEmail, .labelPassword {
  color: white;
  font-size: clamp(0.95rem, 1.1vw, 1.2rem);
  font-weight: 300;
  margin-bottom: 0.5rem;
  font-family: 'Rostack', sans-serif;
}

/* Inputs */
.inputemail, .inputPassword {
  background-color: #ffffff1e;
  border: 2px solid #ffffff;
  border-radius: clamp(6px, 0.5vw, 8px);
  padding: 0 1vw;
  font-size: clamp(0.95rem, 1.1vw, 1.2rem);
  width: 100%;
  color: white;
  font-weight: 100;
  transition: all 0.3s ease;
  box-sizing: border-box;
  height: clamp(45px, 3vw, 3.5vw);
  margin-bottom: 0;
}

.inputemail:focus, .inputPassword:focus {
  border-color: #007bff;
  outline: none;
  background-color: #ffffff2e;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.inputemail::placeholder, .inputPassword::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

/* Password Toggle Icon */
.password-toggle {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.3s;
  z-index: 10;
  font-size: clamp(1rem, 1.2vw, 1.3rem);
}

.password-toggle:hover {
  color: #007bff;
}

/* Checkbox Remember Me */
.checkbox-remember {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: white;
  font-size: clamp(0.9rem, 1.05vw, 1.15rem);
  cursor: pointer;
  font-family: 'Rostack', sans-serif;
  margin-bottom: clamp(1.5rem, 2vw, 2rem);
}

.checkbox-remember input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-width: 18px;
  min-height: 18px;
  cursor: pointer;
  accent-color: #007bff;
  margin: 0;
  flex-shrink: 0;
}

/* Submit Button */
.submit {
  background-color: #007bff38;
  border-radius: clamp(6px, 0.5vw, 8px);
  border: 2px solid #2A7DD8;
  padding: clamp(0.8rem, 1.1vw, 1.2rem);
  width: 100%;
  max-width: clamp(140px, 14vw, 200px);
  margin: 0 auto;
  transition: all 0.3s ease-in-out;
  color: white;
  font-size: clamp(1.05rem, 1.35vw, 1.4rem);
  font-weight: 500;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: block;
}

.submit:hover {
  background-color: #007bff8a;
  border-color: #48a0ff;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
}

.submit:active {
  transform: translateY(0);
}

/* Register Link */
.register-link {
  text-align: center;
  color: white;
  font-size: clamp(0.95rem, 1.1vw, 1.2rem);
  margin-top: clamp(1.5rem, 2vw, 2rem);
  font-weight: 300;
}

.register-link a {
  color: #007bff;
  text-decoration: none;
  font-weight: 400;
  transition: color 0.3s;
}

.register-link a:hover {
  color: #48a0ff;
}

/* Forgot Password */
.forgot-password {
  text-align: center;
  margin-top: clamp(1rem, 1.5vw, 1.5rem);
}

.forgot-password a {
  color: #007bff;
  text-decoration: none;
  font-size: clamp(0.9rem, 1.05vw, 1.1rem);
  transition: color 0.3s;
}

.forgot-password a:hover {
  color: #48a0ff;
}

/* Alert Messages */
.alert {
  padding: clamp(1rem, 1.2vw, 1.4rem);
  border-radius: 8px;
  font-size: clamp(0.9rem, 1vw, 1.1rem);
  margin-bottom: clamp(1.5rem, 2vw, 2rem);
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.alert-success {
  background-color: #024605;
  border: 1px solid #4dff65;
  color: #ffffff;
}

.alert-danger {
  color: #ff4d4d;
  background-color: rgba(70, 2, 2, 0.5);
  border: 1px solid #ff4d4d;
}

/* Activation Message */
.text_activated {
  color: #ff4d4d !important;
  font-size: clamp(1rem, 1.2vw, 1.3rem);
  margin: clamp(1rem, 1.5vw, 1.5rem) 0;
  text-align: center;
}

/* Resend Link Section */
.resend-section {
  text-align: center;
  margin-top: clamp(1.5rem, 2vw, 2rem);
  padding-top: clamp(1.5rem, 2vw, 2rem);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.resend-section h3 {
  margin-bottom: 1rem;
}

.resend-section p a {
  color: #007bff;
  text-decoration: none;
  font-weight: 400;
  transition: color 0.3s;
}

.resend-section p a:hover {
  color: #48a0ff;
}

/* ===============================================
   MEDIA QUERIES - Responsive Design
   =============================================== */

/* Tablets - Large (1024px - 1280px) */
@media screen and (max-width: 1280px) {
  .Log-in-all {
    background-position: -22vw 3vw;
    background-size: 90vw;
  }
  
  .Log-in-container {
    width: 55%;
    padding: 3rem 2rem;
  }
  
  .Log-in-img {
    width: 45%;
  }
}

/* Tablets - Medium (768px - 1024px) */
@media screen and (max-width: 1024px) {
  .Log-in-all {
    background-position: -20vw 15vw;
    background-size: 80vw;
  }
  
  .Log-in-container {
    width: 60%;
    border-radius: 1.5vw 0 0 1.5vw;
    padding: 2.5rem 1.8rem;
  }
  
  .Log-in-img {
    width: 40%;
  }
}

/* Tablets - Small & Mobile Landscape (600px - 768px) */
@media screen and (max-width: 768px) {
  .Log-in {
    background-position: center;
    padding: 0;
  }
  
  .Log-in-all {
    flex-direction: column;
    background-image: url(../image/غلاف-صفحة.png), linear-gradient(to top, #023055, #111214);
    background-position: center;
    background-size: cover;
  }
  
  .Log-in-img {
    display: none;
  }
  
  .Log-in-container {
    width: 100%;
    height: auto;
    min-height: 100vh;
    border-radius: 0;
    padding: 2rem 1.5rem;
    justify-content: center;
  }
  
  .head-page-Up {
    margin-bottom: 2rem;
  }
  
  .text-Log-In {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 2rem;
  }
  
  .submit {
    max-width: 100%;
    padding: 1rem;
  }
}

/* Mobile - Medium (480px - 600px) */
@media screen and (max-width: 600px) {
  .Log-in-container {
    padding: 1.8rem 1.2rem;
  }
  
  .head-page-Up {
    margin-bottom: 1.8rem;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }
  
  .icon-logo {
    height: 50px;
    width: 50px;
  }
  
  .text-Log-In {
    font-size: 2rem;
  }
  
  .inputemail, .inputPassword {
    height: 48px;
    font-size: 1rem;
    padding: 0 0.8rem;
  }
  
  .submit {
    font-size: 1.15rem;
    padding: 0.9rem;
  }
}

/* Mobile - Small (320px - 480px) */
@media screen and (max-width: 480px) {
  .Log-in-container {
    padding: 1.5rem 1rem;
  }
  
  .head-page-Up {
    margin-bottom: 1.5rem;
  }
  
  .icon-logo {
    height: 45px;
    width: 45px;
  }
  
  .head-page-Up h1 {
    font-size: 1rem;
  }
  
  .text-Log-In {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
  }
  
  .form-group {
    margin-bottom: 1.3rem;
  }
  
  .labelEmail, .labelPassword {
    font-size: 0.95rem;
  }
  
  .inputemail, .inputPassword {
    height: 44px;
    font-size: 0.95rem;
    padding: 0 0.7rem;
    border-width: 1.5px;
  }
  
  .password-toggle {
    font-size: 1rem;
    right: 0.8rem;
  }
  
  .checkbox-remember {
    font-size: 0.9rem;
  }
  
  .checkbox-remember input[type="checkbox"] {
    width: 16px;
    height: 16px;
    min-width: 16px;
    min-height: 16px;
  }
  
  .submit {
    font-size: 1.05rem;
    padding: 0.85rem;
    max-width: 100%;
  }
  
  .register-link, .forgot-password {
    font-size: 0.9rem;
  }
  
  .alert {
    font-size: 0.9rem;
    padding: 0.9rem;
  }
}

/* Mobile - Extra Small (< 320px) */
@media screen and (max-width: 320px) {
  .Log-in-container {
    padding: 1.2rem 0.8rem;
  }
  
  .text-Log-In {
    font-size: 1.6rem;
  }
  
  .inputemail, .inputPassword {
    height: 40px;
    font-size: 0.9rem;
    padding: 0 0.6rem;
  }
  
  .submit {
    font-size: 1rem;
    padding: 0.8rem;
  }
}

/* Landscape Orientation للهواتف */
@media screen and (max-height: 500px) and (orientation: landscape) {
  .Log-in-container {
    height: auto;
    min-height: 100vh;
    padding: 1.5rem 1rem;
    justify-content: flex-start;
    padding-top: 2rem;
  }
  
  .head-page-Up {
    margin-bottom: 1rem;
  }
  
  .text-Log-In {
    font-size: 1.6rem;
    margin-bottom: 1rem;
  }
  
  .form-group {
    margin-bottom: 1rem;
  }
  
  .inputemail, .inputPassword {
    height: 40px;
  }
  
  .checkbox-remember {
    margin-bottom: 1rem;
  }
  
  .submit {
    padding: 0.75rem;
  }
}

/*----------------------------- End Log In - Responsive -------------------------------*/