* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

body {
  background: white;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 10px; /* prevents edges sticking on mobile */
}

.login-container {
  width: 100%;
  max-width: 420px;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* ---------------- HEADER SECTION ---------------- */
.top-section {
  padding: clamp(25px, 6vw, 45px) 0 clamp(15px, 3vw, 25px) 0;
  text-align: center;
  border-bottom-left-radius: 50px 20px;
}

.top-section img.logo {
    width: 50px;
    height: 50px;
    max-width:80px;
}

/* ---------------- FORM SECTION ---------------- */
.form-section {
  padding: clamp(20px, 5vw, 35px);
  text-align: center;
}

h2 {
  margin-bottom: 20px;
  color: #333;
  font-size: clamp(18px, 2.5vw, 22px);
}

input[type="text"],
input[type="password"] {
  width: 100%;
  padding: 14px;
  margin: 10px 0;
  border: none;
  border-radius: 25px;
  background: #f2f2f2;
  font-size: clamp(14px, 2vw, 16px);
}

/* Password Eye */
.password-wrapper {
  position: relative;
}
.password-wrapper i {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: gray;
  cursor: pointer;
}

/* Options row */
.options {
  display: flex;
  justify-content: space-between;
  font-size: clamp(11px, 1.8vw, 13px);
  margin-top: 5px;
  flex-wrap: wrap;
  gap: 10px;
}

.options a {
  color: #666;
  text-decoration: none;
}

/* Login button */
.login-btn {
  width: 100%;
  padding: 14px;
  margin-top: 20px;
  border: 1px solid #5c2ed8;
  border-radius: 25px;
  background: transparent;
  color: #5c2ed8;
  font-size: clamp(15px, 2vw, 17px);
  cursor: pointer;
  transition: all 0.3s ease;
}

.login-btn:hover {
  background: #5c2ed8;
  color: white;
}

/* Extra text */
.signup-text {
  margin-top: 15px;
  font-size: clamp(13px, 2vw, 15px);
}
.signup-text a {
  color: #5c2ed8;
  text-decoration: none;
}

.alt-login {
  margin-top: 15px;
  font-size: clamp(11px, 2vw, 13px);
  color: #777;
}

/* Social buttons */
.social-login {
  margin-top: 10px;
}
.social-login a {
  color: white;
  background: #5c2ed8;
  padding: 10px;
  margin: 0 5px;
  border-radius: 50%;
  display: inline-block;
  font-size: 16px;
  transition: background 0.3s ease;
}
.social-login a:hover {
  background: #01c1f6;
}

/* ---------------- RESPONSIVENESS ---------------- */
@media (max-width: 600px) {
  body {
    align-items: flex-start;
  }
  .login-container {
    max-width: 100%;
    min-height: 100vh;
    border-radius: 0;
    box-shadow: none;
  }
  .top-section {
    padding: 20px 0 15px 0;
    border-bottom-left-radius: 30px 12px;
  }
  .form-section {
    padding: 20px;
  }
  .options {
    flex-direction: row;
    align-items: flex-start;
  }
}

@media (min-width: 1000px) {
  .login-container {
    max-width: 500px;
  }
}
