body,div, h1,h2,form,fieldset,input,textarea,footer,p{
    margin: 0;
    padding: 0;
  border:none;
    outline: none;
}
body{
    background-image: url('../images/bg_hijau.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: #ffffff;
    font-family: 'Courier New', Courier, monospace;
}
h2 {
    margin-bottom: 30px;
    text-align: center;
    font-size: 32px;
    font-family: 'Arial', sans-serif;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    letter-spacing: 1px;
}

p {
    font-family: 'Arial', sans-serif;
    font-size: 18px;
    color: #333;
    margin-bottom: 15px;
    line-height: 1.5;
}

#wrap {
    width: 90%;
    max-width: 500px;
    margin: 0px auto;
    padding: 20px;
}
#form-wrap{
    overflow: hidden;
    height: 430px;
    position: relative;
    top: 0;
    transition:  all 1s ease-in-out .2s;
}
#form-wrap::before{
    content: '';
    position: absolute;
    bottom: 110px;
    left: 0;
    background: url('../images/sur_blkg.png') no-repeat center center;
    background-size: cover;
    width: 100%;
    height: 316px;
}
#form-wrap::after{
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    background: url('../images/sur_depan.png') no-repeat center center;
    background-size: cover;
    width: 100%;
    height: 235px;
}

#form-wrap.hide::after,
#form-wrap.hide::before{
    display: none;
}
#form-wrap:hover{
    height: 750px;
    top: -200px;
}

form{
    background: #ffffff;
    position: relative;
    top: 200px;
    overflow: hidden;
    height: auto;
    min-height: 200px;
    width: 90%;
    max-width: 400px;
    margin: 0 auto;
    padding: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 
        0 1px 3px rgba(0,0,0,0.12),
        0 1px 2px rgba(0,0,0,0.24),
        0 10px 20px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
}

form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 15px;
    right: 15px;
    height: 1px;
    background: linear-gradient(to right, transparent, #ccc, transparent);
}

#form-wrap:hover form{
    transform: translateY(-5px);
    box-shadow: 
        0 4px 6px rgba(0,0,0,0.16),
        0 4px 6px rgba(0,0,0,0.23),
        0 15px 25px rgba(0,0,0,0.20);
}
label {
    margin: 15px 0 8px;
    font-size: 14px;
    font-weight: 600;
    color: #2c3e50;
}

.remember-me {
    margin: 15px 0;
    display: flex;
    align-items: center;
}

.remember-me input[type="checkbox"] {
    margin-right: 8px;
}

.remember-label {
    display: inline;
    margin: 0;
    font-size: 12px;
    text-transform: none;
    color: #666;
    font-weight: normal;
}

input[type=text],input[type=password], textarea{
    font-family: 'Times New Roman', Times, serif;
    font-size: 16px;
    color: #2c3e50;
    background: #f8f9fa;
    width: 100%;
    box-sizing: border-box;
    padding: 8px 12px;
    margin: 0 0 15px 0;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    transition: all 0.3s ease;
}

input[type=text]:focus,
input[type=password]:focus {
    background: #ffffff;
    border-color: #4CAF50;
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.1);
}
textarea{
    height: 80px;
    padding-top: 14px;
}
textarea:focus,
input[type=text]:focus{
    background: white;
}
.btn-login {
    display: block;
    width: 150px;
    height: 50px;
    margin:auto 0;
    padding: 0;
    border: none;
    background: url('../images/btn_login_up.png') no-repeat center;
    background-size: contain;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-login:hover {
    background-image: url('../images/btn_login_down.png');
}

.btn-text {
    position: relative;
    display: inline-block;
    color: transparent;
    user-select: none;
}
#form-wrap:hover input[type=submit]{
    z-index: 1;
    opacity: 1;
    transition: opacity 0.5s ease-in-out 1.2s;
}

@media screen and (max-width: 480px) {
    #wrap {
        width: 95%;
        padding: 10px;
        margin: 10px auto;
    }
    
    form {
        width: 85%;
        padding: 15px;
    }
    
    input[type=text],
    input[type=password],
    textarea {
        padding: 8px 10px;
        font-size: 14px;
    }
    
    label {
        font-size: 12px;
    }
    
    .btn-submit {
        padding: 10px;
        font-size: 14px;
    }

    p {
        font-size: 16px;
    }

    h2 {
        font-size: 24px;
        margin-bottom: 20px;
    }
}