OneCompiler

THE BLACK BOX

115
<!DOCTYPE html> <html> <head> <title> Cool form </title> <style> body{ background-color: black; } p{
  font-size: 20px;
  color: white;
  font-weight: bold;
  text-align: center;
}
h{
  color: grey;
}
  .container {
    margin: 0 auto;
    background-color: black;
    border-radius: 3px;
    width:360px;
    padding: 20px;
    box-shadow: 0px 4px 8px silver;
    transition: transform 0.3s ease;
  }
  .container:hover{
    transform: scale(1.1);
  }
    label{
      display: block;
      margin-bottom:10px;
      color: grey;
    }
      
      input{
        width:100%;
        padding: 9px;
        box-sizing: border-box;
          margin-bottom:15px;
          border: none;
          box-shadow: 3px;
          border-radius: 4px;
        
      }
      
        
        .submit-btn{
          background-color: gold;
          margin-top: 20px;
          color: cream;
          cursor: pointer;
          border-radius: 5px;
          box-shadow: 0px 2px 4px yellow;
          border-color: yellow;
        }
          nav-container{
            padding: 10px 0;
            margin: 0 auto;
            display: flex;
            background-color: black;
            margin-top: 20px;
          }
      nav-container a{
        padding: 5px;
        justify-content: center;
        text-decoration: none;
        color: gold;
        text-align:center;
           transition:transform 0.3s ease;
  }
     nav-container a:hover{
    background-color: gold;
    color: black;
    border-radius: 3px;
           transform: scale(1.1);
  }
  ul{
    display: block;

    
  }
  li{
    color: yellow;
    background-color: black;
    padding: 10px;
    margin: 5px 0;
    border: 1px solid gold;
         border-radius: 4px;
         box-shadow:0px 2px 4px gold;
         width:100px;
         transition:transform 0.3s ease;
    
  }
  li:hover{
    transform: scale(1.1);
    
  }


 
 </style>
</head> <body>
      <p>Login to continue!!</p>
<div class="container"> <form> <label for="name">Name:</label> <input type="text" id="name" name="name" required> <label for ="password">Password:</label> <input type="password" id="password" name="paswword" required> <button type="submit" class="submit-btn">Submit</button> </form>
 </div>
 <div class="red-container">
      <p>Welcome to out platform</p>
      <h>We are pleased to have you here have a good experience.Explore our services and choose what works for you.</h>
      <nav-container>
        <a href="index.html">Home</a>
        <a href="services.html">Services</a>
        <a href="#">About</a>
        <a href="#">Gallery</a>
      </nav-container>
      
</body> </html>