* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
body {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-image: url('images/registerpoza.jpg'); 
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    image-rendering: auto;
    transform: translateZ(0);
}

.container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
}

.card {
    background: white;
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s forwards;
}


@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
}

.card input {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 20px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 16px;
    transition: border 0.3s ease;
}

.card input:focus {
    border-color: #ff7e5f;
    outline: none;
}

.card button {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 8px;
    background-color: #ff7e5f;
    color: white;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.card button:hover {
    background-color: #feb47b;
    transform: translateY(-2px);
}

.card .switch {
    margin-top: 15px;
    font-size: 14px;
    color: #555;
}

.card .switch a {
    color: #ff7e5f;
    text-decoration: none;
    font-weight: bold;
}

.card .switch a:hover {
    text-decoration: underline;
}

#toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    min-width: 200px;
    padding: 12px 20px;
    border-radius: 8px;
    color: white;
    font-weight: bold;
    text-align: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease, transform 0.5s ease;
    z-index: 1000;
}

#toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(-20px);
}

/*validare parola */
#passwordCriteria {
    margin-bottom: 20px;
    width: 100%;
}
.criteria {
    font-size: 14px;
    margin: 3px 0;
    color: #e74c3c;
    font-weight: 500;
}
.criteria::before {
    content: "✗";
}
.criteria.valid {
    color: #27ae60;
}

/*ochii pentru parola */
.password-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}
.password-wrapper input {
    width: 100%;
    padding: 12px 40px 12px 15px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 16px;
}
.password-wrapper .toggle-password {
    position: absolute;
    right: 12px;
    cursor: pointer;
    font-size: 18px;
    color: #888;
    transition: color 0.3s ease;
    top: 35%;
    transform: translateY(-50%);
}
.password-wrapper .toggle-password:hover {
    color: #2575fc;
}