form
  h2 Bienvenue

  .form-section
    h3 Infos perso
    
    label Nom et prénom
    input type="text"/
    
    label Adresse email
    input type="text"/
    
    label Code postal
    input type="text"/
  
  .form-section
    h3 Sécurité

    label Mot de passe
    input type="password"/

    label Vérification de mot de passe
    input type="password"/
  
  button Continuer
View Compiled
body 
  background: #FEF9EF

h2 
  margin-top: 0

form 
  display: flex
  flex-flow: column
  gap: 0.25em
  margin: 2em auto 
  padding: 2em
  max-width: 21em
  background-color: #fff
  border-radius: 0.5em
  font-size: 0.875em
  box-shadow: 0 5px 30px rgba(0,0,0,0.05)
  input, button 
    transition: all 0.1s ease
    &:focus 
      outline: 2px solid #0142bb
  input 
    font-size: 1em
    line-height: 2
    margin-bottom: 1em
    padding: 0 0.5em
    border: 1px solid #ddd
    border-radius: 0.25em
    box-shadow: inset 0 1px 1px rgba(#000,0.1)
  button
    background-color: #0142bb
    color: #fff
    border: 0
    align-self: flex-end
    padding: 0.5em 0.75em
    border-radius: 0.25em
    
.form-section 
  display: flex
  flex-flow: column
  margin: auto -2em
  padding: 0 2rem
  background-color: #fff
  transition: all 0.16s ease
  &:focus-within
    background: rgba(#0142bb, 0.1)
View Compiled

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.