﻿body {
    background-image: url('/img/8.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    direction: rtl;
    display: flex;
}

.register-container {
    background: #ffffff;
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    width: 150%;
    max-width: 500px;
    box-sizing: border-box;
}

    .register-container h2 {
        color: #2e7d32;
        font-weight: bold;
        text-align: center;
        margin-bottom: 25px;
    }

.toggle-eye {
    position: absolute;
    top: 50%;
    left: 15px;
    transform: translateY(-50%);
    cursor: pointer;
    color: #999;
    font-size: 20px;
    z-index: 2;
}

.form-control {
    border-radius: 10px;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 15px;
    padding: 10px;
}

.animated-image {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

.btnn {
    background-color: darkgreen;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    width: 100%;
    box-sizing: border-box;
}

    .btnn:hover {
        background: linear-gradient(45deg, #1e7e34, #28a745);
    }

@media (max-width: 768px) {
    .register-container {
        padding: 50px;
        margin: 20px;
        width: 270%;
        max-width: 300px;
    }

        .register-container h2 {
            font-size: 20px;
        }

    .form-control {
        font-size: 14px;
    }

    .btnn {
        font-size: 14px;
        padding: 8px 16px;
    }
}
