@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;700&display=swap');

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Poppins', sans-serif;
}

body {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: linear-gradient(90deg, #e2e2e2, #afafaf);
  padding: 20px;
}

a {
  text-decoration: none;
}

/* Main Container */
.container {
  position: relative;
  width: 100%;
  max-width: 850px;
  min-height: 550px;
  background: #fff;
  border-radius: 30px;
  box-shadow: 0 0 30px rgba(0,0,0,0.2);
  overflow: hidden;
  display: flex;
  flex-direction: row;
}

/* Form Section */
.form-box {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #333;
  text-align: center;
  padding: 40px;
}

form { width: 100%; }

.container h1 {
  font-size: 32px;
  margin-bottom: 20px;
}

.input-box {
  margin: 20px 0;
  position: relative;
}

.input-box input {
  width: 100%;
  padding: 13px 50px 13px 20px;
  background: #eee;
  border-radius: 8px;
  border: none;
  outline: none;
  font-size: 16px;
}

.input-box i {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  color: #888;
}

.btn {
  width: 100%;
  height: 48px;
  background: linear-gradient(90deg, #000833, #000d53);
  color: #fff;
  font-weight: 600;
  border-radius: 8px;
  border: 1px solid #ff0000;
  transition: 0.3s;
}

.btn:hover { background: #5c5c5c; }

/* Toggle Section */
.toggle-box {
  flex: 1;
  background: linear-gradient(90deg, #000833, #000d53);
  border-left: 3px solid #ff0000;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 40px 20px;
  text-align: center;
}

.toggle-panel h1 {
  font-size: 26px;
  margin-bottom: 15px;
}

.toggle-panel p {
  width: 80%;
  border-bottom: 1px solid #ffffff40;
  margin: 10px auto 20px;
}

.toggle-panel .btn {
  width: 180px;
  height: 46px;
  background: #ffffff;
  border: 2px solid #fff;
  color: #000000;
  margin-top: 10px;
}

.branding {
  position: absolute;
  top: 20px;
  left: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.company-logo {
  height: 45px;
  width: auto;
  background: #fff;
  padding: 4px;
  border-radius: 6px;
}

.company-name {
  font-size: 18px;
  font-weight: 600;
  color: #000000;
}

.btn-back:hover {
  background: #bdbdbd !important;
}

/* =======================================
   RESPONSIVENESS  
======================================= */

/* Tablets (≤ 900px) */
@media screen and (max-width: 900px) {

  body { padding: 10px; }

  .container {
    flex-direction: column;
    height: auto;
    border-radius: 20px;
  }

  .branding {
    position: relative;
    left: 0;
    top: 0;
    margin-bottom: 20px;
    justify-content: center;
  }

  .toggle-panel h1 {
    font-size: 22px;
  }
}

/* Phones (≤ 500px) */
@media screen and (max-width: 500px) {

  .container {
    border-radius: 15px;
    padding: 10px;
  }

  .container h1 { font-size: 24px; }

  .company-logo { height: 35px; }

  .company-name { font-size: 15px; }

  .toggle-panel h1 {
    font-size: 18px;
  }

  .toggle-panel p {
    width: 90%;
    margin: 8px auto 15px;
  }

  .input-box input {
    font-size: 14px;
    padding: 12px 45px 12px 15px;
  }

  .btn {
    font-size: 14px;
    height: 42px;
  }
}
