/* General reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: url(guragawr.jpg) no-repeat center center/cover;
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    /* Animation for the background */
    
}

/* Keyframes for a subtle background zoom animation */
@keyframes zoomBackground {
    from {
        background-size: 100% 100%;
    }
    to {
        background-size: 120% 120%;
    }
}

.wrapper {
    width: 420px;
    background: rgba(255, 255, 255, 0.15); /* Semi-transparent background */
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 10px;
    backdrop-filter: blur(10px); /* Increased blur for a stronger effect */
    padding: 30px 40px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
    
    /* Fade-in animation for the form */
    opacity: 0;
    transform: translateY(-20px);
    animation: fadeInForm 0.8s ease-out forwards;
}

/* Keyframes for form fade-in */
@keyframes fadeInForm {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.wrapper h1 {
    font-size: 36px;
    text-align: center;
    color: #fff;
    margin-bottom: 20px;
}

.input-box {
    position: relative;
    width: 100%;
    height: 50px;
    margin: 30px 0;
}

.input-box input {
    width: 100%;
    height: 100%;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.5);
    outline: none;
    border-radius: 40px;
    font-size: 16px;
    color: #fff;
    padding: 0 45px 0 20px;
    transition: all 0.3s ease;
}

.input-box input:focus {
    border-color: #fff;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

.input-box input::placeholder {
    color: #fff;
}

.input-box i {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    color: #fff;
}

.password-toggle {
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.password-toggle:hover {
    opacity: 1;
}

.remember-forgot {
    display: flex;
    justify-content: space-between;
    font-size: 14.5px;
    margin: -15px 0 20px;
    color: #fff;
}

.remember-forgot label input {
    accent-color: #fff;
    margin-right: 3px;
}

.remember-forgot a {
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.remember-forgot a:hover {
    text-decoration: underline;
    transform: translateY(-2px);
}

.btn {
    width: 100%;
    height: 50px;
    background: #fff;
    border: none;
    outline: none;
    border-radius: 40px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    font-size: 16px;
    color: #333;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn:hover {
    background: #e2e2e2;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.register-link {
    font-size: 14.5px;
    text-align: center;
    margin-top: 20px;
}

.register-link p a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.register-link p a:hover {
    text-decoration: underline;
    transform: translateY(-2px);
}

/* Additional registration form styles */
.field-group {
    margin: 15px 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.field-group label {
    font-weight: bold;
    color: #fff;
}

.radio-group, .checkbox-group {
    flex-direction: row;
    align-items: center;
    gap: 10px;
}

.checkbox-group label a {
    color: #fff;
    text-decoration: underline;
}

.field-group input[type="date"] {
    background: #fff;
    color: #000;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.field-group input[type="radio"],
.field-group input[type="checkbox"] {
    margin-right: 5px;
}

/* Validation styles from previous step */
input:invalid {
    border-color: #ff4d4d;
    box-shadow: 0 0 5px rgba(255, 77, 77, 0.5);
}

input:valid {
    border-color: #4CAF50;
    box-shadow: 0 0 5px rgba(76, 175, 80, 0.5);
}

/* Password validation list styles */
.password-group {
    margin-bottom: 20px;
}

#password-validation {
    margin-top: 5px;
    padding-left: 10px;
    font-size: 13px;
    line-height: 1.4;
    transition: opacity 0.3s ease; /* Animation for the messages */
}

#password-validation p {
    margin: 2px 0;
}

/* Responsive Design */
@media (max-width: 600px) {
    .wrapper {
        width: 90%;
        padding: 20px 25px;
        backdrop-filter: blur(10px);
    }

    .wrapper h1 {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .wrapper {
        padding: 15px 20px;
    }

    .wrapper h1 {
        font-size: 24px;
        margin-bottom: 15px;
    }

    .input-box {
        margin: 20px 0;
    }
}