Login Page

HTML

<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Husen - Login</title>
  <link rel="stylesheet" href="style.css">
  <link rel="preconnect" href="https://fonts.googleapis.com">
  <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
  <link href="https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&display=swap" rel="stylesheet">
</head>
<body>
  <main class="page">
    <section class="login-card">
      <header class="brand">
        <h1>HUSEN</h1>
        <p>YOUR CREATIVE WORKSPACE</p>
      </header>

      <div class="divider-title">
        <span></span>
        <h2>Let's get start journey</h2>
        <span></span>
      </div>

      <form class="login-form">
        <label class="input-group">
          <svg viewBox="0 0 24 24" class="input-icon" aria-hidden="true">
            <rect x="2" y="4" width="20" height="16" rx="2"/>
            <path d="m3 6 9 7 9-7"/>
          </svg>
          <input type="email" placeholder="Email address" value="" required aria-label="Email Address">
        </label>

        <label class="input-group password-group">
          <svg viewBox="0 0 24 24" class="input-icon" aria-hidden="true">
            <rect x="3" y="10" width="18" height="12" rx="2"/>
            <path d="M7 10V7a5 5 0 0 1 10 0v3"/>
            <path d="M12 14v4"/>
          </svg>
          <input type="password" id="password" placeholder="Password" value="" required aria-label="Password">
          <button type="button" class="eye-button" onclick="togglePassword()" aria-label="Show or hide password">
            <svg viewBox="0 0 24 24" aria-hidden="true">
              <path d="M2 12s3.5-7 10-7 10 7 10 7-3.5 7-10 7-10-7-10-7z"/>
              <circle cx="12" cy="12" r="3"/>
            </svg>
          </button>
        </label>

        <button type="submit" class="continue-btn">CONTINUE</button>
      </form>

      <div class="help"><a href="#">Need help getting started?</a></div>
      <footer class="footer">@codewithhusen</footer>
    </section>
  </main>

  <script>
    function togglePassword() {
      const password = document.getElementById("password");
      password.type = password.type === "password" ? "text" : "password";
    }

    document.querySelector(".login-form").addEventListener("submit", function (event) {
      event.preventDefault();
      alert("Login form submitted! Connect this form to your authentication backend.");
    });
  </script>
</body>
</html>

CSS

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

body {
  min-height: 100vh;
  font-family: "Montserrat", sans-serif;
  color: #fff;
  background: #071c30;
}

.page {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 35px 20px;
  background-image: url(./bg.jpg);
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
}

.login-card {
  width: 100%;
  max-width: 850px;
  min-height: 850px;
  padding: 45px 4%;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(40, 72, 88, .48);
  border: 1px solid rgba(200, 240, 255, .35);
  border-radius: 75px;
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  box-shadow: 0 0 35px rgba(0, 195, 255, .18), inset 0 0 35px rgba(255, 255, 255, .08);
}

.brand {
  text-align: center;
  margin-bottom: 45px;
}

.brand h1 {
  font-size: 52px;
  font-weight: 800;
  letter-spacing: 1px;
}

.brand p {
  margin-top: 12px;
  color: #c6e7f4;
  font-size: 15px;
  letter-spacing: 3px;
}

.divider-title {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  margin-bottom: 55px;
}

.divider-title span {
  width: 120px;
  height: 1px;
  background: rgba(200, 240, 255, .5);
}

.divider-title h2 {
  font-family: Georgia, serif;
  font-size: clamp(25px, 4vw, 49px);
  font-weight: 400;
  text-align: center;
  white-space: nowrap;
}

.login-form {
  width: 100%;
  max-width: 950px;
}

.input-group {
  width: 100%;
  height: 92px;
  display: flex;
  align-items: center;
  padding: 0 35px;
  margin-bottom: 23px;
  border: 2px solid rgba(210, 240, 255, .65);
  border-radius: 60px;
  background: rgba(255, 255, 255, .07);
  transition: .3s ease;
}

.input-group:focus-within {
  border-color: #70eaff;
  box-shadow: 0 0 20px rgba(65, 215, 255, .25);
}

.input-icon {
  width: 37px;
  height: 37px;
  flex-shrink: 0;
  margin-right: 30px;
  fill: none;
  stroke: white;
  stroke-width: 1.5;
  transition: all ease-in-out 0.3s;
}

.input-group:focus-within .input-icon {
  transform: translate(10px, 0);
  stroke: #70eaff;
}

.input-group input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: white;
  font: inherit;
  font-size: 25px;
  letter-spacing: 1px;
}

.input-group input::placeholder {
  color: rgba(255, 255, 255, .75);
}

.eye-button {
  display: flex;
  align-items: center;
  margin-left: 15px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.eye-button svg {
  width: 32px;
  height: 32px;
  fill: none;
  stroke: white;
  stroke-width: 1.7;
}

.continue-btn {
  width: 100%;
  height: 95px;
  margin-top: 12px;
  border: 2px solid #91efff;
  border-radius: 60px;
  background: linear-gradient(180deg, #27b9d8, #02657e);
  color: white;
  font-size: 29px;
  font-weight: 800;
  letter-spacing: 2px;
  cursor: pointer;
  box-shadow: 0 8px 25px rgba(0, 180, 220, .2);
  transition: .3s ease;
}

.continue-btn:hover {
  transform: translateY(-4px);
  background: linear-gradient(120deg, #48d8ef, #0795b5);
  box-shadow: 0 10px 35px rgba(0, 200, 255, .4);
}

.help {
  margin-top: 55px;
  text-align: center;
}

.help a {
  padding-bottom: 5px;
  border-bottom: 1px solid rgba(255, 255, 255, .7);
  color: #e4f5fa;
  font-size: 21px;
  text-decoration: none;
}

.help a:hover {
  color: #71e9ff;
}

.footer {
  margin-top: 50px;
  color: #d2e9f2;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 1px;
}

.heart,
.user-icon {
  font-size: 90px;
  line-height: 1;
}

@media (max-width: 768px) {
  .page {
    padding: 20px 12px;
  }

  .login-card {
    min-height: auto;
    padding: 45px 22px;
    border-radius: 40px;
  }

  .brand h1 {
    font-size: 38px;
  }

  .brand p {
    font-size: 11px;
    letter-spacing: 2px;
  }

  .brand {
    margin-bottom: 35px;
  }

  .divider-title {
    gap: 10px;
    margin-bottom: 35px;
  }

  .divider-title span {
    width: 30px;
    flex-shrink: 1;
  }

  .divider-title h2 {
    font-size: clamp(20px, 5vw, 30px);
  }

  .input-group {
    height: 68px;
    padding: 0 20px;
  }

  .input-icon {
    width: 25px;
    height: 25px;
    margin-right: 15px;
  }

  .input-group input {
    font-size: 15px;
  }

  .eye-button svg {
    width: 25px;
    height: 25px;
  }

  .continue-btn {
    height: 70px;
    font-size: 21px;
  }

  .help {
    margin-top: 40px;
  }

  .help a {
    font-size: 14px;
  }

  .footer {
    margin-top: 35px;
    font-size: 13px;
  }

  .social-sidebar {
    display: none;
  }
}

@media (max-width: 380px) {
  .login-card {
    padding: 35px 15px;
  }

  .divider-title h2 {
    font-size: 19px;
  }

  .input-group {
    padding: 0 14px;
  }

  .input-icon {
    margin-right: 10px;
  }
}