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

body {
    font-family: 'Open Sans', Helvetica, Arial, sans-serif;
    background: #121212; /* Dark background */
    color: #ffc107; /* Golden yellow text */
}
form sign-up{
  height: 400px;
}
input,
button {
    border: none;
    outline: none;
    background: none;
    font-family: 'Open Sans', Helvetica, Arial, sans-serif;
    color: #ffc107; /* Yellow input text */
}

.tip {
    font-size: 20px;
    margin: 40px auto 50px;
    text-align: center;
}

.cont {
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    width: 900px;
    height: 550px;
    margin: 0 auto 100px;
    background: #1e1e1e; /* Dark card */
    box-shadow: 0 0 25px rgba(255, 193, 7, 0.3);
}

.form {
    position: relative;
    width: 640px;
    height: 100%;
    transition: transform 1.2s ease-in-out;
    padding: 50px 30px 0;
}

.sub-cont {
    overflow: hidden;
    position: absolute;
    left: 640px;
    top: 0;
    width: 900px;
    height: 100%;
    padding-left: 260px;
    background: #1e1e1e; /* Dark side */
    transition: transform 1.2s ease-in-out;
}

.cont.s--signup .sub-cont {
    transform: translate3d(-640px, 0, 0);
}

button {
    display: block;
    margin: 0 auto;
    width: 260px;
    height: 40px;
    border-radius: 30px;
    background: #ffc107; /* Yellow button */
    color: #121212; /* Dark text */
    font-weight: bold;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

button:hover {
    background: #ffca2c;
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(255, 193, 7, 0.6);
}

.img {
    overflow: hidden;
    z-index: 2;
    position: absolute;
    left: 0;
    top: 0;
    width: 260px;
    height: 100%;
    padding-top: 360px;
}

.img:before {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    width: 900px;
    height: 100%;
    background-image: url("ext.jpg");
    opacity: .5; /* darker overlay for night mode */
    background-size: cover;
    transition: transform 1.2s ease-in-out;
}

.img:after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(18, 18, 18, 0.8);
}

.cont.s--signup .img:before {
    transform: translate3d(640px, 0, 0);
}

.img__text {
    z-index: 2;
    position: absolute;
    left: 0;
    top: 50px;
    width: 100%;
    padding: 0 20px;
    text-align: center;
    color: #ffc107; /* Yellow text */
    transition: transform 1.2s ease-in-out;
}

.img__text h2 {
    margin-bottom: 10px;
    font-weight: bold;
}

.img__text p {
    font-size: 14px;
    line-height: 1.5;
}

.cont.s--signup .img__text.m--up {
    transform: translateX(520px);
}

.img__text.m--in {
    transform: translateX(-520px);
}

.cont.s--signup .img__text.m--in {
    transform: translateX(0);
}

.img__btn {
    z-index: 2;
    position: relative;
    width: 100px;
    height: 36px;
    margin: 0 auto;
    background: transparent;
    color: #ffc107;
    text-transform: uppercase;
    font-size: 15px;
    cursor: pointer;
}

.img__btn:after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    border: 2px solid #ffc107;
    border-radius: 30px;
}

.img__btn span {
    position: absolute;
    left: 0;
    top: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    transition: transform 1.2s;
}

.img__btn span.m--in {
    transform: translateY(-72px);
}

.cont.s--signup .img__btn span.m--in {
    transform: translateY(0);
}

.cont.s--signup .img__btn span.m--up {
    transform: translateY(72px);
}

h2 {
    width: 100%;
    font-size: 26px;
    text-align: center;
    color: #ffc107;
}

label {
    display: block;
    width: 260px;
    margin: 25px auto 0;
    text-align: center;
}

label span {
    font-size: 12px;
    color: #aaa; /* lighter gray for labels */
    text-transform: uppercase;
}

input {
    display: block;
    width: 100%;
    margin-top: 5px;
    padding-bottom: 5px;
    font-size: 16px;
    background: transparent;
    border-bottom: 1px solid #ffc107;
    text-align: center;
    color: #ffc107;
}

input::placeholder {
    color: #ffc107;
    opacity: 0.7;
}

.forgot-pass {
    margin-top: 15px;
    text-align: center;
    font-size: 12px;
    color: #bbb;
}

.submit {
    margin-top: 40px;
    margin-bottom: 20px;
}

.sign-in {
    transition-timing-function: ease-out;
}

.cont.s--signup .sign-in {
    transition-timing-function: ease-in-out;
    transition-duration: 1.2s;
    transform: translate3d(640px, 0, 0);
}

.sign-up {
    transform: translate3d(-900px, 0, 0);
}

.cont.s--signup .sign-up {
    transform: translate3d(0, 0, 0);
}


/* 📱 Mobile & Tablet Optimization */
@media (max-width: 992px) {
  .cont {
    width: 100%;
    margin: 20px auto;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    min-height: 550px; /* ✅ ensure space for the forms */
  }

  .sub-cont {
    position: relative;
    width: 100%;
    height: 100%; /* ✅ take full height of parent */
    display: block;
  }

  .form {
    width: 100%;
    padding: 30px 20px 60px; /* add some bottom padding */
    position: absolute;
    top: 0;
    left: 0;
    transition: transform 0.6s ease-in-out, opacity 0.6s ease-in-out;
  }

  /* Default: show Sign In */
  .sign-in {
    transform: translateX(0);
    opacity: 1;
    z-index: 2;
  }

  .sign-up {
    transform: translateX(100%);
    opacity: 0;
    z-index: 1;
  }

  /* Toggle: show Sign Up */
  .cont.s--signup .sign-in {
    transform: translateX(-100%);
    opacity: 0;
    z-index: 1;
  }

  .cont.s--signup .sign-up {
    transform: translateX(0);
    opacity: 1;
    z-index: 2;
  }
.google-btn {
  margin: 15px auto;
  width: 100%;
  max-width: 280px; /* prevent button from being too wide */
  height: 45px;
  background-color: #121212;
  border-radius: 30px;
  border: 2px solid #ffc107;
  background: transparent !important;
  color: #ffc107;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.3s ease;
}

.google-btn{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  gap:12px !important;
  padding:10px 16px !important;
  border:2px solid #ffc107;
  border-radius:30px;
  background:#2c2c2c;
  color:#ffc107;
  font-weight:600;
}

/* 🔒 Force the SVG size even if other CSS says img { width:100% } */
.google-btn img{
  width:20px !important;
  height:20px !important;
  display:block !important;
  flex:0 0 20px !important;
  object-fit:contain !important;
}

@media (max-width:576px){
  .google-btn img{
    width:16px !important;
    height:16px !important;
    flex-basis:16px !important;
  }
}


/* Mobile adjustments */
@media (max-width: 576px) {
  .google-btn {
    font-size: 14px;
    height: 42px;
  }

  .google-btn img {
    width: 16px;
    height: 16px;
  }
}


  /* Hide desktop side image */
  .img {
    display: none !important;
  }

  /* Adjust text and buttons */
  h2 {
    font-size: 22px;
    text-align: center;
  }

  input {
    font-size: 14px;
  }

  button {
    width: 100%;
    font-size: 14px;
    height: 42px;
  }
}

@media (max-width: 576px) {
  .cont {
    margin: 10px;
    padding: 15px;
    box-shadow: none;
    min-height: 500px; /* ✅ extra guarantee */
  }

  h2 {
    font-size: 20px;
  }

  .forgot-pass {
    font-size: 12px;
    text-align: center;
    display: block;
  }
}
