* {
    margin: 0;
    padding: 0;
    border: none;
    outline: none;
    box-sizing: border-box;
}
body {
    background-color: #27272B;
}



body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow: hidden;
}

.video-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1; /* Keep the video behind everything */
}

.container {
    display: flex;
    justify-content: center; /* Center horizontally */
    align-items: center;     /* Center vertically */
    height: 100vh;           /* Full height viewport */
}

.content {
    display: flex;
    justify-content: space-around; /* Space between the gif and image */
    align-items: center;
    gap: 6rem; /* Add some gap between GIF and image */
}




section {
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('background_register.png') no-repeat;
    min-height: 100vh;
    min-width: 100vh;
    background-size: cover;
    background-position: center;
}
.form-box {
    position: relative;
    width: 400px;
    height: 450px;
    backdrop-filter: blur(10px);
    border: 2px solid gray;
    border-radius: 20px;
    align-items: center;
    justify-content: center; 
    display: flex;
    animation: slideIn 0.5s ease forwards;
    transform: translateY(50px);
    opacity: 0;
}
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
button {
    width: 100%;
    height: 40px; 
    border-radius: 40px;
    border: none;
    outline: none;
    cursor: pointer;
    font-size: 1em;
    font-weight: 600;
    position: relative;
    overflow: hidden;
    transition: background 0.3s, transform 0.2s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
button:before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300%;
    height: 300%;
    background: rgba(255, 255, 255, 0.1);
    transition: width 0.3s, height 0.3s, top 0.3s, left 0.3s;
    z-index: 0;
    border-radius: 50%;
}
button:hover:before {
    width: 0;
    height: 0;
    top: 50%;
    left: 50%;
}
button:hover {
    background: blue;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0,0,0,0.15);
}
.inputbox {
    position: relative;
    margin: 30px 0;
    width: 310px;
    border-bottom: 2px solid #fff;
}
.inputbox label {
    position: absolute;
    top: 50%;
    left: 5px;
    transform: translateY(-50%);
    color: #fff;
    font-size: 1em;
    pointer-events: none;
    transition: .5s;
}
input:focus ~ label,
input:valid ~ label {
    top: -9px;
}
h2 {
    color: white;
    font-size: 2rem;
    font-weight: 600;
    text-align: center;
}
.inputbox input {
    width: 100%;
    height: 40px;
    background: transparent;
    border: none;
    outline: none;
    font-size: 1em;
    padding: 0 35px 0 5px;
    color: white;
}
.inputbox ion-icon {
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
    right: 8px;
    position: absolute;
    cursor: pointer;
    transition: transform 0.3s ease;
}

/* Dodaj animacjÄ™ obrotu */
@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.icon-rotate {
    animation: rotate 0.6s ease-in-out;
}

.success-border {
    transition: all 0.6s;
    border: 4px solid green;
}
.error_email {
    transition: all 0.6s;
    border: 4px solid red;
}
.error_username {
    transition: all 0.6s;
    border: 4px solid red;
}
p{
    font-size: 19px;
    margin: 10px;
    color: white;
}
a{
    font-size: 19px;
    margin: 5px;
    color: orange;
}




@media (max-width: 400px) {
  .form-box {
    height: auto;
    font-size: 14px;
    margin-right: 150px;
  }
}

/* Dla większych ekranów (np. tablety, laptopy) */
@media (max-width: 502px) {
  .form-box {
      margin-right: 400px;
  }
}
.p-a-register {
font-weight: bold;
color: black;
text-decoration: none;
transition: all 0.2s ease;
}
.p-a-register:hover {
color: gray;}



