@font-face {
    font-family: 'IranianSans';
    src: url('/main/fonts/IranianSans.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

.chami-auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 80px);
    padding: 20px;
    background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%);
    margin-top: 100px; /* فاصله بیشتر از هدر */
}

.chami-auth-form-wrapper {
    background-color: #fff;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    width: 100%;
    max-width: 450px;
    text-align: center;
    animation: chami-auth-slide-in 0.8s ease-out forwards;
    transform: translateY(50px);
    opacity: 0;
}

@keyframes chami-auth-slide-in {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.chami-auth-form-wrapper h1 {
    font-size: 2rem;
    color: #292b76;
    margin-bottom: 25px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
    animation: chami-auth-title-glow 1.5s ease-in-out infinite alternate;
}

@keyframes chami-auth-title-glow {
    from {
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
    }
    to {
        text-shadow: 1px 1px 8px rgba(41, 43, 118, 0.4);
    }
}

.chami-auth-form-group {
    margin-bottom: 25px;
    position: relative;
}

.chami-auth-form-group label {
    display: block;
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

.chami-auth-form-group label:hover {
    color: #292b76;
}

.chami-auth-form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1.1rem;
    font-family: 'IranianSans', Arial, sans-serif;
    transition: all 0.3s ease;
    background: linear-gradient(145deg, #ffffff, #f0f0f0);
    box-shadow: inset 2px 2px 5px rgba(0, 0, 0, 0.05), inset -2px -2px 5px rgba(255, 255, 255, 0.7);
}

.chami-auth-form-group input:focus {
    outline: none;
    border-color: #292b76;
    box-shadow: 0 0 10px rgba(41, 43, 118, 0.5);
    transform: scale(1.02);
}

.chami-auth-captcha-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 15px 0;
    position: relative;
}

.chami-auth-captcha-image {
    border: 1px solid #ccc;
    border-radius: 8px;
    width: 120px;
    height: 48px;
    transition: transform 0.3s ease;
}

.chami-auth-captcha-image:hover {
    transform: scale(1.05);
}

.chami-auth-captcha-refresh-btn {
    background: linear-gradient(45deg, #292b76, #3b3fa3);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.chami-auth-captcha-refresh-btn:hover {
    background: linear-gradient(45deg, #1e1f5a, #292b76);
    transform: rotate(360deg) scale(1.1);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.chami-auth-captcha-refresh-btn i {
    font-size: 1.4rem;
}

.chami-auth-error {
    color: #d32f2f;
    font-size: 1rem;
    margin-bottom: 20px;
    animation: chami-auth-error-shake 0.3s ease;
}

@keyframes chami-auth-error-shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.chami-auth-submit-btn {
    background: linear-gradient(45deg, #292b76, #3b3fa3);
    color: #fff;
    padding: 14px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1.2rem;
    font-family: 'IranianSans', Arial, sans-serif;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.chami-auth-submit-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.chami-auth-submit-btn:hover::after {
    width: 200%;
    height: 200%;
}

.chami-auth-submit-btn:hover {
    background: linear-gradient(45deg, #1e1f5a, #292b76);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

@media (max-width: 767px) {
    .chami-auth-form-wrapper {
        padding: 20px;
        max-width: 90%;
    }

    .chami-auth-form-wrapper h1 {
        font-size: 1.6rem;
    }

    .chami-auth-form-group input {
        padding: 10px;
        font-size: 1rem;
    }

    .chami-auth-submit-btn {
        padding: 12px 20px;
        font-size: 1.1rem;
    }
}