@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/vazirmatn/Vazirmatn-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Vazirmatn', Arial, sans-serif;
}

body {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    direction: rtl;
    padding: 20px 0;
    overflow-y: auto; /* اطمینان از فعال بودن اسکرول عمودی */
}

.container {
    width: 100%;
    max-width: 500px;
    padding: 20px;
    margin: auto;
}

.auth-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.welcome-text {
    font-size: 24px;
    margin-bottom: 50px;
    font-weight: bold;
}

.logo-container {
    margin-bottom: 50px;
}

.logo {
    width: 120px;
    height: 120px;
    animation: pulse 2s infinite;
}

.message-container {
    margin-bottom: 50px;
}

.welcome-message, .register-message {
    font-size: 16px;
    line-height: 1.6;
}

.button-container {
    display: flex;
    justify-content: space-around;
    width: 100%;
    margin-top: 20px;
}

.auth-button {
    background-color: transparent;
    border: 2px solid white;
    border-radius: 50px;
    color: white;
    padding: 12px 30px;
    text-decoration: none;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
    cursor: pointer;
}

.auth-button:hover {
    background-color: white;
    color: #3498db;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

/* Form styles */
.form-container {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 20px;
    width: 100%;
    margin-bottom: 20px;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

.form-container h2 {
    margin-bottom: 20px;
    font-size: 20px;
}

.form-group {
    margin-bottom: 15px;
    text-align: right;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
}

.form-group input {
    width: 100%;
    padding: 10px;
    background-color: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 5px;
    color: white;
    font-size: 16px;
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.form-group input:focus {
    outline: none;
    border-color: white;
    background-color: rgba(255, 255, 255, 0.3);
}

.error-message {
    color: #ffcccc;
    font-size: 14px;
    margin-top: 5px;
    text-align: right;
}

.register-link, .login-link {
    margin-top: 15px;
    font-size: 14px;
}

.register-link a, .login-link a {
    color: white;
    text-decoration: underline;
    font-weight: bold;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* For mobile screens */
@media (max-width: 500px) {
    .welcome-text {
        font-size: 20px;
        margin-bottom: 30px;
    }
    
    .logo {
        width: 100px;
        height: 100px;
    }
    
    .button-container {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
    
    .auth-button {
        width: 80%;
    }
}