.isancard-login-container {
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    direction: rtl;
    font-family: 'IRANSans', sans-serif;
}

.login-wrapper {
    display: flex;
    width: 100%;
    max-width: 1200px;
    min-height: 600px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 40px;
    overflow: visible;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.25), 0 10px 30px rgba(0, 0, 0, 0.15);
    position: relative;
}

.login-form-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: #ffffff;
    border-radius: 40px;
    position: relative;
    z-index: 2;
}

.login-form-content {
    width: 100%;
    max-width: 400px;
}

.login-logo {
    margin-bottom: 30px;
    text-align: center;
}

.login-logo img {
    max-width: 150px;
    height: auto;
}

.login-form-title {
    font-size: 32px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 10px;
    text-align: center;
}

.login-form-subtitle {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 40px;
    text-align: center;
}

.login-form {
    width: 100%;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.login-input {
    width: 100%;
    padding: 12px 15px 12px 45px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #fff;
    color: #1f2937;
    text-align: right;
    direction: rtl;
}

.login-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.input-icon {
    position: absolute;
    left: 15px;
    font-size: 20px;
    pointer-events: none;
}

.code-group {
    animation: slideDown 0.3s ease;
}

.code-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    gap: 10px;
}

.resend-btn,
.edit-phone-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: transparent;
    color: #3b82f6;
    text-decoration: underline;
}

.resend-btn:hover:not(:disabled),
.edit-phone-btn:hover {
    color: #2563eb;
}

.resend-btn:disabled {
    color: #9ca3af;
    cursor: not-allowed;
    text-decoration: none;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-btn {
    width: 100%;
    padding: 14px;
    background: #3b82f6;
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.login-btn:hover:not(:disabled) {
    background: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.login-btn:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    opacity: 0.6;
}

.login-btn:active {
    transform: translateY(0);
}

.login-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.login-message {
    margin-top: 20px;
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    font-size: 14px;
    display: none;
}

.login-message.success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
    display: block;
}

.login-message.error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
    display: block;
}

.login-bg-panel {
    flex: 1;
    position: relative;
    background: #1e293b;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 40px;
    overflow: visible;
    z-index: 1;
    border-radius: 40px 0 0 40px;
    margin-right: -40px;
    padding-right: 80px;
}

.login-bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(59, 130, 246, 0.05) 50%, transparent 100%);
    opacity: 0.6;
}

.login-bg-pattern::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.login-copyright {
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: 25px;
    max-width: 400px;
    width: 100%;
}

.login-copyright p {
    color: #ffffff;
    font-size: 12px;
    line-height: 1.6;
    margin: 0;
    text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
    .login-wrapper {
        flex-direction: column;
        min-height: auto;
    }
    
    /* برعکس کردن ترتیب: کارت اعتباری بالا، فرم پایین */
    .login-bg-panel {
        order: 1;
        min-height: 250px; /* افزایش ارتفاع برای پر کردن فضای بالا */
        padding: 20px;
        padding-top: 40px; /* افزایش padding بالا */
        border-radius: 0 !important; /* حذف لبه‌های گرد از پنل سورمه‌ای */
        margin-right: 0 !important;
        padding-right: 20px !important;
        margin-bottom: -40px !important; /* بردن بیشتر عکس زیر لبه‌های گرد فرم */
        position: relative;
        z-index: 1;
    }
    
    /* مخفی کردن کپی رایت در موبایل */
    .login-bg-panel .login-copyright {
        display: none !important;
    }
    
    .login-form-wrapper {
        order: 2;
        padding: 30px 20px;
        border-radius: 40px 40px 0 0 !important;
        position: relative;
        z-index: 2; /* فرم روی عکس قرار بگیرد */
    }
    
    .login-form-title {
        font-size: 24px;
    }
    
    .login-form-subtitle {
        font-size: 12px;
    }
}

