Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.

+ add another resource

JavaScript

Babel includes JSX processing.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource

Packages

Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.

Behavior

Auto Save

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML

              
                <!doctype html>
<html lang="en">

<head>
    <meta charset="utf-8">
    <meta http-equiv="pragma" content="no-cache" />
    <meta http-equiv="expires" content="-1" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Internet hotspot - Log in</title>
    <link rel="stylesheet" href="css/style.css">
</head>

<body>

    
    
    
    

    <!-- two other colors

<body class="lite">
<body class="dark">

-->
    
    $(if chap-id)
    <form name="sendin" action="$(link-login-only)" method="post" style="display:none">
        <input type="hidden" name="username" />
        <input type="hidden" name="password" />
        <input type="hidden" name="number" />
        <input type="hidden" name="dst" value="http://green.hotspot/policy.html" />
        <input type="hidden" name="popup" value="true" />
    </form>

    <script src="/md5.js"></script>
    <script>
        function doLogin() {
            document.sendin.username.value = document.login.username.value;
            document.sendin.password.value = hexMD5('$(chap-id)' + document.login.password.value + '$(chap-challenge)');
            document.sendin.submit();
            return false;
        }

    </script>
    $(endif)
    <div class="ie-fixMinHeight">
        <div class="main">
            <div class="wrap animated fadeIn">
                <form name="login" action="$(link-login-only)" method="post" $(if chap-id) onSubmit="return doLogin()" $(endif)>
                    <input type="hidden" name="dst" value="$(link-orig)" />
                    <input type="hidden" name="popup" value="true" />
                        <div style="margin:0px">
                        <img src="img/green-logo.png" alt="" width="280px" >
                    
                    <p class="info $(if error)alert$(endif)">
                        $(if error == "")Inserisci le credenziali per eseguire l'accesso. $(if trial == 'yes')<br />Free trial available, <a href="$(link-login-only)?dst=$(link-orig-esc)&amp;username=T-$(mac-esc)">click here</a>.$(endif)
                        $(endif)
    
                        $(if error)$(error)$(endif)
                    
                
                    
                    </p>
                    <label for="email">
                        <img class="ico" src="img/user.svg" alt="#" />
                        <input name="username" type="email" value="$(username)" placeholder="Username" />
                    </label>

                    <label>
                        <img class="ico" src="img/password.svg" alt="#" />
                        <input name="password" type="password" placeholder="Password" />
                    </label>
                    <br>
                    <input type="submit" value="Connettiti" />
                    
                    <br>
                    <br>
                    </p>
                    </form>
                    <p class="info bt1">Se non disponi di credenziali, <a href="http://green.hotspot/signup.html" style="color:rgb(57, 186, 143); text-align:center" target="_blank" rel="noopener noreferrer">Registrati</a>
                    <br>  
                    <br>
            
                    
                <br>
                <br>
                <br>
                <br>
                </p>
                
                <a href="https://foisfabio.it/" style="color:rgb(57, 186, 143); text-align:center" target="_blank" rel="noopener noreferrer">Powered by foisfabio.it</a>
                </p>

            </div>
        </div>
    </div>
</body>

</html>

              
            
!

CSS

              
                a,body,div,form,html,img,input,label,p,span{
  margin:0;
  padding:0;
  border:0;
  font-family:sans-serif,Arial}
  
  body,html{
    min-height:100%;
    overflow-x:hidden}
  body{
    background:#a2a09b;
    background:-webkit-linear-gradient(315deg,hsla(236.6,0%,53.52%,1) 0,hsla(236.6,0%,53.52%,0) 70%),-webkit-linear-gradient(65deg,hsla(220.75,34.93%,26.52%,1) 10%,hsla(220.75,34.93%,26.52%,0) 80%),-webkit-linear-gradient(135deg,hsla(46.42,36.62%,83.92%,1) 15%,hsla(46.42,36.62%,83.92%,0) 80%),-webkit-linear-gradient(205deg,hsla(191.32,50.68%,56.45%,1) 100%,hsla(191.32,50.68%,56.45%,0) 70%);
    background:linear-gradient(135deg,hsla(236.6,0%,53.52%,1) 0,hsla(236.6,0%,53.52%,0) 70%),linear-gradient(25deg,hsla(220.75,34.93%,26.52%,1) 10%,hsla(220.75,34.93%,26.52%,0) 80%),linear-gradient(315deg,hsla(46.42,36.62%,83.92%,1) 15%,hsla(46.42,36.62%,83.92%,0) 80%),linear-gradient(245deg,hsla(191.32,50.68%,56.45%,1) 100%,hsla(191.32,50.68%,56.45%,0) 70%)}a{color:#486173}
    
  input,label{vertical-align:middle;white-space:normal;background:0 0;line-height:1}
  
  label{
    position:relative;display:block;margin:-12px 20px;}

  p::first-letter{
    text-transform:uppercase}

  .main{
    min-height:calc(100vh - 90px);width:100%;
    display:-webkit-box;
    display:-ms-flexbox;
    display:flex;
    -webkit-box-orient:vertical;
    -webkit-box-direction:normal;
    -ms-flex-direction:column;
    flex-direction:column}
    
  .ie-fixMinHeight{
    display:-webkit-box;
    display:-ms-flexbox;
    display:flex}.ico{height:16px;
    position:absolute;top:0;
    left:0;margin-top:13px;
    margin-left:14px}
        
  .logo{
    max-width:200px;
    display:block;
    margin:0 auto 30px auto}
    
  .logo *{
    fill:#fff}
  .lite .logo *{
    fill:#444}h1{text-align:center;
    color:#fff;
    font-size:24px!important}*{-webkit-box-sizing:border-box;
      box-sizing:border-box;
      font-size:16px}
      
  .wrap{
    margin:auto;
    padding:30px;
    -webkit-transition:width .3s ease-in-out;
    transition:width .3s ease-in-out}@media only screen and (min-width:1px) and (max-width:575px){.wrap{width:100%}}
    
  form{
    width:100%;
    margin-bottom:20px}@-webkit-keyframes fadeIn{from{opacity:0}to{opacity:1}}@keyframes fadeIn{from{opacity:0}to{opacity:1}}
      
  .fadeIn{
    -webkit-animation-name:fadeIn;
    animation-name:fadeIn}
    
  .animated{
    -webkit-animation-duration:1s;
    animation-duration:1s;
    -webkit-animation-fill-mode:both;
    animation-fill-mode:both}
    
  .info{
    color:#fff;text-align:left;
    margin-bottom:30px}
    
  input{
    outline:0;
    -webkit-appearance:auto;
    -moz-appearance:auto;
    -moz-appearance:auto;
    appearance:auto}
    
  input:focus {
    outline:0}
    
  input[type=password],

  input[type=text],
  
  input[type=email]{
    width:100%;
    border:1px solid; 
    background-color: rgba(255,255,255,.8); 
    height:44px;padding:3px 20px 3px 40px;
    margin-bottom:20px;
    border-radius:6px;
    background-color:rgba(255,255,255,.8);
    -webkit-transition:-webkit-box-shadow .3s ease-in-out;
    transition:-webkit-box-shadow .3s ease-in-out;
    transition:box-shadow .3s ease-in-out;
    transition:box-shadow .3s ease-in-out,-webkit-box-shadow .3s ease-in-out}
    
  input[type=password]:focus,
  input[type=text]:focus,
  input[type=email]:focus{
    -webkit-box-shadow:0 0 5px 0 rgba(255,255,255,1);
    box-shadow:0 0 5px 0 rgba(255,255,255,1)}
    
  .bt{
    opacity:.4}
    
  input[type=submit]{
    background:#3e4d59;
    color:#fff;
    border:0;
    cursor:pointer;
    text-align:center;
    width:100%;
    height:40px;
    border-radius:6px;
    -webkit-transition:background .3s ease-in-out;
    transition:background .3s ease-in-out}
    
  input[type=submit]:focus,
  input[type=submit]:hover{
    background:#33404a}
    
  table{
    border-collapse:collapse;
    width:100%;
    margin-bottom:20px}
    
  table td{
    color:#fff;
    border-bottom:1px solid #e6e6e6;
    padding:10px 4px 10px 0}
    
  table td:first-child{
    font-weight:700}
    
  .lite{
    background:#fff}
    
  .lite input[type=password],
  .lite input[type=text]{
    border:1px solid #c3c3c3}
    
  .lite .info,
  .lite h1,
  .lite table td{
    color:#444}
  .lite input[type=password]:focus,
  .lite input[type=text]:focus{
    -webkit-box-shadow:0 0 5px 0 rgba(62,77,89,.2);
    box-shadow:0 0 5px 0 rgba(62,77,89,.2)}
    
  .dark{
    background:#343434}

  .dark input[type=submit]{
    background:#dc3a41}

  .dark button[type=submit]{
    background:#dc3a41}

  .dark input[type=submit]:focus,
  
  .dark button[type=submit]:focus,

  .dark input[type=submit]
  
  :hover{
    background:#b92f35}
    
  .dark input[type=password] 

  .dark input[type=text]{
    background-color:#fff}
    
  .dark a{
    color:#dc3a41}
  
  .dark table td{
    border-bottom:1px solid #505050}
    
  .info.alert{
    color:#da3d41}@media (min-width:576px){
      .wrap{width:410px}*{font-size:14px!important}
      
   input[type=checkbox] {
    position: relative;
    cursor: pointer;
}

  
  input[type=checkbox]::before{
    content: "";
    display: block;
    position: absolute;
    width: 160px;
    height: 16px;
    top: 0;
    left: 0;
    border: 2px solid #555;
    border-radius: 3px;
    background-color: white;
}

input[type=checkbox]:checked:after{
    content: "✔️"; 
    position: absolute;
    top: 2px;
    left: 2px;
    font-size: 16px;
    color: #555;
}
 
      
  button[type=submit]{   
    background:#3e4d59;
    color:#fff;
    border:0;
    cursor:pointer;
    text-align:center;
    width:90%;
    height:40px;
    border-radius:6px;
    -webkit-transition:background .3s ease-in-out;
    transition:background .3s ease-in-out}
}
              
            
!

JS

              
                
              
            
!
999px

Console