@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', 'sans-serif';
}

body{
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    background: linear-gradient(135deg, #1B264F 0%, #274690 50%, #576CA8 100%);
    overflow: hidden;
    padding: 20px;
    margin: 0;
}

.wrapper{
    height: 260px;
    background: #F5F3F5;
    max-width: 410px;
    max-height: 90vh;
    border-radius: 15px;
    padding: 16px 25px;
    transition: height 0.2s ease;
    box-shadow: 0 10px 30px rgba(27, 38, 79, 0.3);
    border: 2px solid rgba(87, 108, 168, 0.2);
}

.wrapper.active{
    height: 480px;
}

.header h1{
    font-size: 21px;
    font-weight: 600;
    color: #1B264F;
    text-align: center;
}

.header p{
    margin-top: 5px;
    color: #302B27;
    font-size: 16px;
    text-align: center;
    opacity: 0.8;
}

.wrapper .form{
    margin: 20px 0 25px;
}

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

.form input{
    font-size: 18px;
    padding: 0 17px;
    border: 2px solid #576CA8;
    background: #F5F3F5;
    color: #302B27;
    transition: all 0.3s ease;
}

.form input:focus{
    border-color: #274690;
    box-shadow: 0 0 10px rgba(39, 70, 144, 0.3);
    transform: translateY(-2px);
}

.form button{
    color: #F5F3F5;
    cursor: pointer;
    margin-top: 20px;
    font-size: 17px;
    font-weight: 600;
    background: linear-gradient(135deg, #274690 0%, #1B264F 100%);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.form button:hover{
    background: linear-gradient(135deg, #576CA8 0%, #274690 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(27, 38, 79, 0.4);
}

.form button:active{
    transform: translateY(0);
}

.wrapper .qr-code{
    display: flex;
    opacity: 0;
    pointer-events: none;
    padding: 33px 0;
    border-radius: 10px;
    align-items: center;
    justify-content: center;
    border: 2px solid #576CA8;
    background: linear-gradient(135deg, #F5F3F5 0%, rgba(87, 108, 168, 0.1) 100%);
    transition: all 0.3s ease;
    position: relative;
}

.wrapper .qr-code::before{
    content: "QR Code will appear here";
    position: absolute;
    color: #576CA8;
    font-size: 14px;
    opacity: 0.7;
}

.wrapper.active .qr-code::before{
    display: none;
}

.wrapper .qr-code img{
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(27, 38, 79, 0.2);
    max-width: 150px;
    max-height: 150px;
}

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

.footer{
    position: fixed;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    background: rgba(245, 243, 245, 0.9);
    padding: 8px 16px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(87, 108, 168, 0.2);
}

.footer p{
    color: #302B27;
    font-size: 11px;
    margin-bottom: 2px;
    opacity: 0.8;
}

.footer a{
    color: #274690;
    text-decoration: none;
    font-size: 11px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer a:hover{
    color: #1B264F;
    text-decoration: underline;
}