@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700&display=swap');


body {
    background: #e0e5ec;
    font-family: 'Cairo', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    padding: 0;
}


.container-login {
    width: 100%;
    max-width: 500px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.logo-container {
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeSlideIn 1.5s ease-out forwards;
}

.animated-logo {
  width: 15rem;
  height: auto;
  opacity: 0;
  margin-bottom: -1rem;
  transform: translateY(-30px) scale(0.95);
  border-radius: 20px;
  animation: fadeSlideIn 1.5s ease-out forwards;
}

.animated-logo:hover {
  transform: scale(1.2);
  transition: all 0.3s ease-in-out;
}

/* Animation */
@keyframes fadeSlideIn {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.neumorphic-card {
    width: 100%;
    max-width: 25rem;
    background: #e0e5ec;
    padding: 20px 40px 40px 40px;
    border-radius: 20px;
    box-shadow: 10px 10px 30px #bebebe, -10px -10px 30px #ffffff;
    text-align: center;
}

.neumorphic-card h2 span{
    color:#007bff;
    font-weight: bolder;
}

#signupForm {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
}

.neumorphic-input {
    border: none;
    outline: none;
    width: 100%;
    max-width: 100%;
    padding: 12px 20px;
    border-radius: 25px;
    background: #e0e5ec;
    box-shadow: inset 8px 8px 16px #c5c9ce, inset -8px -8px 16px #ffffff;
    font-size: 16px;
    
}

.neumorphic-input:hover {
    background-color: rgba(24, 166, 255, 0.5);
}

.neumorphic-input:focus {
    border-bottom: 2px solid #007bff;
}

.phone-wrapper {
  position: relative;
  margin-left: -4.8rem;
  width: 90%;

}

.fixed-code {
  position: absolute;
  top: 50%;
  left: 15px;
  transform: translateY(-50%);
  color: #007bff; /* لون مميز */
  font-weight: bold;
  font-size: 16px;
  border-right: 1px solid #007bff; /* خط فاصل */
  padding-right: 0.2rem;
  pointer-events: none; /* علشان ما تتضغطش أو تتحدد */
}

.phone-input {
  padding-left: 60px !important; /* مساحة كافية للكود */
}


.password-wrapper {
    position: relative;
    width: 100%;
}

.password-wrapper input {
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    font-size: 16px;
    margin-left: -1.3rem;
}

.password-wrapper input:focus {
    border-bottom: 2px solid #007bff;
}

.toggle-password {
    position: absolute;
    top: 50%;
    right: 0.1rem;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 18px;
    user-select: none;
    color: #666;
}

.toggle-password:hover {
    color: #000;
}

.welcome-text,
.login-or-signup {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
    letter-spacing: 2px;

}


.welcome-text h1 {
    margin: 0;
    text-align: center;
    font-size: 32px;
    font-weight: bold;
    color: #222;
    font-family: cursive;
}

.welcome-text h1 span {
    color: #007bff;
    padding-right: 4px;
}

.login-or-signup {
    margin-top: 20px;
    font-size: 15px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    text-align: center;
    direction: rtl;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.login-or-signup p {
    margin: 0;
    line-height: 1.6;
}

.login-or-signup a {
    font-weight: bold;
    color: #006ca6;
    text-decoration: none;
    transition: all 0.3s ease-in-out;
    border-bottom: 1px dashed transparent;
}

.login-or-signup a:hover {
    color: #004c7a;
    border-bottom: 1px dashed #004c7a;
    letter-spacing: 0.3px;
}

.login-box {
    position: relative;
    display: inline-block;
    margin-top: 20px;
}

/* ===== Mobile-first fixes (Signup) ===== */
*,
*::before,
*::after { box-sizing: border-box; }

html, body { height: auto; }

body {
  min-height: 100dvh;
  padding: 16px;
  -webkit-tap-highlight-color: transparent;
}

.container-login {
  width: 100%;
  max-width: 420px;
  padding: 12px;
  min-height: auto;
}

/* لوجو وعنوان */
.animated-logo { width: clamp(120px, 35vw, 180px); margin-bottom: 1.25rem; }
@media (hover: none) { .animated-logo:hover { transform: none; } }

.welcome-text { margin-bottom: 1.75rem; }
.welcome-text h1 { font-size: clamp(20px, 6vw, 28px); }

/* الكرت */
.neumorphic-card {
  width: 100%;
  max-width: 100%;
  padding: 18px;
  border-radius: 16px;
  box-shadow: 6px 6px 18px #cfd3d8, -6px -6px 18px #ffffff;
}

/* الحقول */
.neumorphic-input {
  font-size: clamp(14px, 3.8vw, 16px);
  padding: 14px 16px;
  border-radius: 18px;
}

/* هاتف الكويت – شيل السالب مارجن واضبط البادينج */
.phone-wrapper {
  position: relative;
  width: 100%;
  margin-left: 0;       /* إزالة -4.8rem */
}
.fixed-code {
  left: 12px; top: 50%; transform: translateY(-50%);
  padding-right: 6px;
}
.phone-input { padding-left: 64px !important; }

/* باسورد */
.password-wrapper { position: relative; width: 100%; }
.password-wrapper input { margin-left: 0; padding-right: 44px; }
.toggle-password { right: 12px; top: 50%; transform: translateY(-50%); }

/* الزر */
.bubbly-button,
.neumorphic-button,
#submitSignup {
  width: 100%;
  padding: 14px 16px;
  border-radius: 18px;
  font-size: 16px;
}

/* أسفل الصفحة */
.login-or-signup { margin-top: 14px; font-size: 14px; }
