@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body{
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: #3498DB;
}

.wrapper{
    height: 260px;
    background: #fff;
    max-width: 410px;
    border-radius: 7px;
    padding: 16px 25px;
    transition: height 0.2s ease;
    overflow: hidden;
}

.wrapper.active{
    height: 480px;
}

header h1{
    font-size: 21px;
    font-weight: 500;
}

header p{
    margin-top: 5px;
    color: #474747;
    font-size: 16px;
}

.wrapper .form{
    margin: 15px 0 15px;
}

.form :where(input, button){
    width: 100%;
    height: 55px;
    border: none;
    outline: none;
    border-radius: 5px;
}

.form input{
    font-size: 18px;
    padding: 0 15px;
    border: 1px solid #999;
}

.form button{
    color: #fff;
    margin-top: 15px;
    margin-top: 15px;
    font-size: 17px;
    cursor: pointer;
    background: #3498DB;
}

.wrapper .qr-code{
    display: flex;
    opacity: 0;
    pointer-events: none;
    padding: 10px 0;
    border-radius: 5px;
    align-items: center;
    justify-content: center;
    border: 1px solid #ccc;
}

.wrapper.active .qr-code{
    opacity: 1;
    pointer-events: auto;
    transition: opacity 0.5s 0.05s ease;
}

.wrapper .error-msg{
    opacity: 0;
}

.wrapper.error .error-msg{
    opacity: 1;
    pointer-events: auto;
    transition: opacity 0.5s 0.05s ease;
    color: #ff6347;
}