import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap");

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: url(img2.jpg) no-repeat;
    background-size: cover;
    background-position: center;
}

.wrapper {
    width: 420px;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, .2);
    backdrop-filter: blur(20px);
    box-shadow: 0 0 10px rgba(0, 0, 0, .2);
    color: #fff;
    border-radius: 10px;
    padding: 30px 40px;
    text-align: center;
}

.wrapper h1 {
    margin-bottom: 20px;
    font-size: 24px;
    color: #fff;
    font-weight: 600;
}

.wrapper .input-box {
    position: relative;
    width: 100%;
    height: 50px;
    margin: 20px 0;
}

.input-box input {
    width: 100%;
    width: calc(100% - 40px);
    height: 50px;
    padding: 0 20px; /* Csak bal és jobb oldalon legyen padding */
    font-size: 16px;
    color: #fff;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.2); 
    border-radius: 30px;
    outline: none;
    line-height: 50px; /* A line-height beállításával függőlegesen középre kerül a szöveg */
    transition: all 0.3s ease;
}

/* Fókuszált állapot, amikor beírsz */
.input-box input:focus,
.input-box input:valid {
    border: 2px solid rgba(255, 255, 255, 0.2); /* Alap border szín marad */
}

/* A felirat felúszik, amikor fókuszba kerül az input */
.input-box input:focus ~ label,
.input-box input:valid ~ label {
    top: -14px;
    font-size: 12px;
    color: #fff;
}

/* A gomb stílusa is lekerekített sarkú lesz */
.wrapper .btn {
    width: 100%;
    height: 45px;
    background: #fff;
    border: 2px solid #fff; 
    outline: none;
    border-radius: 30px; /* Kerekített sarkok a gombon */
    box-shadow: 0 0 10px rgba(0, 0, 0, .1);
    cursor: pointer;
    font-size: 16px;
    color: #333;
    font-weight: 600;
    transition: all 0.5s ease;
}

/* Gomb hover effekt */
.wrapper .btn:hover {
    background-color: transparent;
    color: #fff;
}


/* A szöveg alapértelmezett állapota */
.input-box label {
    position: absolute;
    left: 20px;
    top: 14px;  /* Az alap helye a mezőben */
    font-size: 16px;
    color: rgba(255, 255, 255, 0.6);
    padding: 0 4px;
    transition: 0.3s ease;
    pointer-events: none;
    background: transparent;
}

.input-box i {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
}

.wrapper .remember-forgot {
    display: flex;
    justify-content: space-between;
    margin: -15px 0 15px;
}

.remember-forgot label input {
    accent-color: #fff;
    margin-right: 3px;
}

.remember-forgot a {
    color: #fff;
    text-decoration: none;
}

.remember-forgot a:hover {
    text-decoration: underline;
}

.wrapper .btn {
    width: 100%;
    height: 45px;
    background: #fff;
    border: 2px solid #fff;
    outline: none;
    border-radius: 40px;
    box-shadow: 0 0 10px rgba(0, 0, 0, .1);
    cursor: pointer;
    font-size: 16px;
    color: #333;
    font-weight: 600;
    transition: all 0.5s ease;
}

.wrapper .btn:hover {
    background-color: transparent;
    color: #fff;
}

.wrapper .login-link {
    font-size: 14.5px;
    text-align: center;
    margin: 20px 0 15px;
}

.login-link p a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
}

.login-link p a:hover {
    text-decoration: underline;
    }
